The vacuum could find easy pathways in the matrix of foam that could leave the hard-to-reach pockets alone like wet islands. The best way is to take advantage of the gravity or centripetal force, acting on every single molecule of the fluid. A container with porous bottom either tspinning by a machine or just sitting on top of a sloped drain would do.

Only top voted, non community-wiki answers of a minimum length are eligible