rmdir
commandman rmdir
The options are in Description
rmdir
will only remove an empty directory such as the Test
we created with mkdir
cd ~/Documents/
ls -l
rmdir Text
ls -l
This will not work with ParentFolder
Use
rmdir -p ParentFolder/SubFolder01/SubFolder0101
you must include sub directories in path to delete ParentFolder directory
A shorter way around removing direcories is using, ** Be Careful will overwirte and delete anything
rm -rf (DirectoryName)