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 of removing moisture from a sample for accurate weighing can be achieved by either heating the sample to evaporate the water, or by placing it in a dry atmosphere prior to weighing.