sudo rm -rf folder-name
rm -R folder-name
$ rm -rf folderName
sudo rm -rf forder
$ rm -r directoryName
sudo rm -rf folderName
rm -f -R folder-name
# 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
sudo -r -f folder-name //if need permi
rmdir
# To remove non-empty directories and all the files within them,
# use the rm command with the-r (recursive) option:
rm -r dirname