Sugar-phosphate phosphohydrolase that catalyzes the dephosphorylation of D-mannitol 1-phosphate and D-sorbitol 6-phosphate. Also catalyzes the dephosphorylation of 2-deoxyglucose 6-phosphate (2dGlu6P); this is a biologically important activity in vivo since it contributes to the elimination of this toxic compound and plays an important role in the resistance of E.coli to 2-deoxyglucose. sugar phosphate + H2O = sugar + phosphate. 2-deoxy-D-glucose 6-phosphate + H2O = 2-deoxy-D-glucose + phosphate D-mannitol 1-phosphate + H2O = D-mannitol + phosphate D-sorbitol 6-phosphate + H2O = D-sorbitol + phosphate Requires the presence of a divalent metal cation for activity. Can use zinc, manganese, cobalt or magnesium. Belongs to the HAD-like hydrolase superfamily. CbbY/CbbZ/Gph/YieH family.