You can, but it’s not very good at it – you’d be better off using toilet cleaner. CocaCola 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, CocaCola isn’t effective at killing germs, and there are lots of products that are much better at cleaning.