Supercritical carbon dioxide is directed into a wellbore to a specified depth. The supercritical carbon dioxide is directed at an inner surface of the wellbore at the specified depth. Scale is removed from the wall of the wellbore with the supercritical carbon dioxide.