How to Delete Files and Directories with the Linux Command Line
How to delete folder recursively
rm -rf */examplefolder
This will remove all subfolders in the current folder with the name examplefolder.
The command will look in the current folder and check every folder for a subfolder named examplefolder which it will forcefully delete
The f
, in this case, is so that we do not get prompted for write-protected files in the subfolder the f
(force) option will prevent the prompt and just delete the subfolder