I am not an expert, but I think that any command that starts "sudo rm -rf" should be treated with extreme respect/caution. That is
"sudo" = superuser do
"rm" = delete
"-r" = recursively (in the directory)
"-f" = without warning
So perhaps google "sudo rm -rf" before typing it in the terminal.