Allow me to be pedantic:

The correct command to use is: sudo rm -rf /

Your title only deletes the entirety of your current directory. Best to do it right and cut off every thing at the root.