From un- + foam.
unfoam (third-person singular simple present unfoams, present participle unfoaming, simple past and past participle unfoamed)