Category Covered

How to delete recursive files from shell command

If you want to delete recursively all folders and files on linux shell script then follow the command.

Delete the empty folders

$ rmdir letters

 

Recursive all file and folders delete

$ rm -rf letters/

 

To delete everything including the parent folder use the following command also

$ rm -rf letters

Hope this will help you to delete recursive files and folders from command line