How to delete a folder in command line?

By March 29, 2016Linux

Use the following command to delete the folder in command line.
*Before executing following command be careful so that you won’t end up deleting entire system file.

rm -r name_of_folder

This command will prompt you to confirm each action.
To avoid that, use the following command.

rm -rf name_of_folder