How to: remove a directory in Linux?
Removing directory from shell prompt (using Terminal on Mac) is easy. This is a very simple command and very useful.
If you need to remove a directory with confirmation on each file.
Command: rm -r directoryname
This is useful espcially if you want to be double sure about the contents are going to delete.
Command: rm -rf directoryname
This command would remove directory recursively without a prompt. Be careful when using this command.