The command to delete a folder recursively in Linux is rm
. The rm
command can be used to delete files and directories in Linux. To delete a folder and all its contents recursively, use the -r
option.
Here is the syntax for deleting a folder recursively in Linux:
rm -r foldername
The rm
command can be dangerous, as it deletes files and folders permanently without any confirmation. So, use it with caution and double-check the folder and its contents before running the command.