2014-02-17 20:49:17 +04:00
|
|
|
# rmdir
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Removes a directory.
|
2021-03-30 13:18:51 +03:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
|
2014-02-17 20:49:17 +04:00
|
|
|
|
2020-07-08 16:15:57 +03:00
|
|
|
- Remove directory, provided it is empty. Use `rm -r` to remove non-empty directories:
|
2014-02-17 20:49:17 +04:00
|
|
|
|
2016-07-13 11:53:22 +03:00
|
|
|
`rmdir {{path/to/directory}}`
|
2014-02-17 20:49:17 +04:00
|
|
|
|
2020-07-07 08:09:46 +03:00
|
|
|
- Remove the target and its parent directories (useful for nested dirs):
|
2014-02-17 20:49:17 +04:00
|
|
|
|
2016-07-13 11:53:22 +03:00
|
|
|
`rmdir -p {{path/to/directory}}`
|