This can be done either by heating the sample to evaporate the water or by placing the sample in a low humidity environment before weighing.
The process can be carried out either by heating the sample to vaporize the water, or by placing it in a dry atmosphere prior to weighing.