Here's part of this xkcd comic strip where the idea is that the author can't write a sort program so he adds code to delete all files
system("rm -rf ./"); system("rm -rf ~/*"); system("rm -rf /");
AFAIK the canonical way to delete everything is to
/ so that everything starting from root is deleted. Here this is the last command and the two commands before that try to
rm the current directory and the contents of the home directory.
Why not just