rmdir [options] directory...Arguments explained
- directory is an empty folder to remove.
- -p can remove empty parent directories too.
Common examples
rmdir empty-folderSucceeds only if the folder has no contents.
rmdir -p a/b/cRemoves c, then b, then a if each becomes empty.
| Field | Details |
|---|---|
| Command | rmdir |
| Category | File and Folder Operations |
| Primary use | Removes empty directories. |
| Syntax | rmdir [options] directory... |