You can use sugar soap to clean walls before painting to achieve a perfectly prepped base that is ready for a new colour ... such as sodium carbonate, sodium phosphate, or sodium silicate.