Linux Comm Rmdir
# Linux rmdir Command
[ Linux Command Manual](#)
The Linux rmdir (full English name: remove directory) command deletes empty directories.
### Syntax
rmdir dirName
**Parameters**:
* -p is used to delete the parent directory if it becomes empty after the subdirectory is deleted.
### Examples
Delete the subdirectory named AAA in the current working directory:
rmdir AAA
In the BBB directory under the current working directory, delete the subdirectory named Test. If the BBB directory becomes empty after Test is deleted, then BBB will also be deleted.
rmdir -p BBB/Test
[ Linux Command Manual](#)
YouTip