🧀 Learn Linux

Commonly used · Organize files

rmdir: Delete empty directories

Put in free practice

Syntax

rmdir Directory…

Examples

rmdir empty

Usage and sandbox support

Only delete empty directories; return an error if the directory is not empty.

Hands-on exercises

Full documentation ↗

Related commands