tldr/pages/common/rmdir.md

327 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 -p {{path/to/directory1 path/to/directory2 ...}}