xxxxxxxxxx
# To remove an Empty directory, Use
$ sudo rmdir folder-name
# If it is not a empty directory, then rm command can be used
$ sudo rm -rf folder-name
xxxxxxxxxx
# To remove non-empty directories and all the files within them,
# use the rm command with the-r (recursive) option:
rm -r dirname