I'm concerned that it would be irresponsible to answer your question because you might attempt some of these methods. A few days ago you were asking whether it was a good idea to dry your pantry by pouring sodium hydroxide into a corner. (Just to be clear, the answer is NO.)
These substances can be safely dried by people with appropriate equipment, knowledge, common sense, and oversight. You have demonstrated none of these. If you attempt to dry sodium hydroxide at home, by any method, you will create a damaging chemical accident. If you are interested in chemistry, and you enjoy having an intact home, two functional eyes, and a clean criminal record, please stop asking these questions on Reddit and go take a class at your local community college, or anywhere else that you can receive the education you need in a safe and supervised environment.
robot_egg t1_jbsqieb wrote
The easiest way is probably to just heat them under dry nitrogen or (even better) vacuum.
Assuming it's not soluble, you could dump in some solvent with a water azeotrope and distill it off.