There are basically 2 commands you can use to remove direcotories on your Unix/Linux webhost, namely rm and rmdir. But if you don’t have the permission to delete a directory or the directory you are trying to delete contains other files and directories, using these 2 command will return an error message.
The solution to remove these directories recursively is to use rm -r directoryname. The -r flag simply represent the “recursive” flag.
Leave a Reply