tldr/pages/common/rmdir.md

223 B

rmdir

Removes a directory.

  • Removes directory, provided it is empty. Use rm to remove not empty directories:

rmdir {{directory}}

  • Removes directories recursively (useful for nested dirs):

rmdir -p {{path}}