Yes Diet Coke works just a well as regular Coke for cleaning. The reason it works so well to clean your toilet because of the gentle carbonic and phosphoric acid it contains.
1. Empty water from the toilet bowl. Turn the knob on the side of the tank to turn off the water flow and then flush the toilet or fill a large bucket with water and dump it quickly into the toilet. This will force the toilet to empty.