To remove all directories and subdirectories and files inside this directory, use the following command:
[text] $ rm -rf your_directory/
[/text]
Note: In the above command, you would replace “your_directory” with the name of the full directory you wish to delete.
And, if you want to delete/remove an empty directory, you can use the following command:
[text] $ rmdir your_directory[/text]
Note: if the directory is not empty, you may get an error looks like this:
[text] $ rmdir: letters: Directory not empty[/text]