Plain old white vinegar will get slime out of just about everything ... in your kid’s hair and yes, on your carpet. To remove gum from carpet, simply place ice on the gum for 5 to 10 minutes.