mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 21:42:41 +00:00
27 lines
719 B
Plaintext
27 lines
719 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# rmdir
|
|
|
|
> Remove a directory and its contents.
|
|
> In PowerShell, this command is an alias of `Remove-Item`. This documentation is based on the Command Prompt (`cmd`) version of `rmdir`.
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/rmdir>.
|
|
|
|
- View the documentation of the equivalent PowerShell command:
|
|
|
|
`tldr remove-item`
|
|
|
|
- Remove an empty directory:
|
|
|
|
`rmdir {{path o\directory}}`
|
|
|
|
- Remove a directory and its contents recursively:
|
|
|
|
`rmdir {{path o\directory}} /s`
|
|
|
|
- Remove a directory and its contents recursively without prompting:
|
|
|
|
`rmdir {{path o\directory}} /s /q`
|