Paint thinner, turpentine, or any other solvent cleaner can be used to clean the pipe. Clean with soap and water. Some pipe lettering can be rubbed with alcohol, but not with Propanol. Let the paint cure for a week if you want to paint it.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.