Quick Answer: How Do I Delete a Full Directory in Linux?
Contents How Do I Delete a Whole Directory in Linux? Commands to Remove a Directory in Linux There Are Two Command to Delete a Folder in Linux: Rmdir Command –...
How do I delete a whole directory in Linux?
Commands to remove a directory in Linux
There are two command to delete a folder in Linux: rmdir command – Deletes the specified empty directories and folders in Linux. rm command – Delete the file including sub-directories. You can delete non-empty directories with rm command in Linux.
Must Read
How do I delete a full directory in terminal?
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.