To remove a directory that is full with other files and/or other directories, use the below command.

rm -r directory

To remove all directories and subdirectories use rm command. For example remove letters and all subdirectories and files inside this directory, type the following command:
$ rm -rf letters/

Post By Editor (2,827 Posts)

Website: →