How Do I Delete a Whole Directory in Linux?
Contents How Do I Delete a Full Directory in Linux? to Remove a Directory and All Its Contents, Including Any Subdirectories and Files, Use the Rm Command with...
Contents
How do I delete a full directory in Linux?
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r . Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.
How do I delete a full directory in Unix?
To remove a directory that is not empty, use the rm command with the -r option for recursive deletion. Be very careful with this command, because using the rm -r command will delete not only everything in the named directory, but also everything in its subdirectories.