Purchase a multipurpose stain remover such as Goo Gone, GoofOff or Un-Du from a home improvement retailer. These cleaning products act as solvents that safely dissolve gum, grease, tar, adhesives and other sticky residue from almost any surface, including those that are painted.
Make sure your workspace is well-ventilated before handling the chemical cleaner. Spray the product directly onto the affected area or apply it with a rag, depending on the instructions on the label.
Allow the solvent to settle into the glue for the instructed length of time before wiping it away. Some brands take effect immediately and work quickly to soften the glue.
Use a cleaning cloth or microfiber towel to gently loosen the residue from the painted surface. Continue to apply the product as necessary until the excess film has been completely lifted.