Acetone is a solvent that dissolves uncured polyurethane foam and can be used to clean up foam before it cures. Acetone-based nail polish remover will also work to remove uncured foam. Unfortunately, these products don't have any effect on cured foam. Once it cures, you'll have to scrape or sand...