You can, but it’s not very good at it – you’d be better off using toilet cleaner. Coca-Cola contains phosphoric acid, which gives it its tangy taste, and the acid can help clean off dirt. You get the same effect if you use other acidic foods and drinks, like lemon juice. However, Coca-Cola isn’t effective at killing germs, and there are lots of products that are much better at cleaning.