rmdir
Remove directory, this command will only work if the folders are empty.
Syntax
rmdir [options]... folder(s)...
Options
--ignore-fail-on-non-empty
Ignore each failure that is solely because the
directory is non-empty.
-p, --parents Remove explicit parent directories if being emptied
--verbose Output a diagnostic for every directory processed
--help Display help and exit
--version Output version information and exit
Example
Before deleting with a wildcard, it's wise to echo the files first:
$ echo elvis?costello*.mp3
$ rm elvis?costello*.mp3
"It devoured my paper, it was a really good paper" - Ellen Feiss
Related Linux Bash commands:
ls - List information about files (use ls-al to see if
they are empty)
rm - Remove files (rm -rf will recursively remove folders
and their contents)
Equivalent Windows XP commands:
DEL - Delete one or more files
RD - Delete folders or entire folder trees (DELTREE)