tldr/pages/linux/rmdir.md

334 B

rmdir

Remove directories without files. See also: rm. More information: https://www.gnu.org/software/coreutils/rmdir.

  • Remove specific directories:

rmdir {{path/to/directory1 path/to/directory2 ...}}

  • Remove specific nested directories recursively:

rmdir --parents {{path/to/directory1 path/to/directory2 ...}}