Soak a clean cloth in hot water and hold it over the carpet glue for one to two minutes.
Pry away any loose clumps of carpet glue with a putty knife after it has softened up from the heat and moisture. In some cases, you can remove all of the carpet glue this way.
Pour a very small amount of vegetable oil into your hand.
Rub the vegetable oil into the carpet glue on the painted wall.
Let the vegetable oil soak into the glue for 30 minutes.
Wipe away the loosened glue with a clean cloth.