mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* windows/*: add PowerShell commands and aliases * clear-host, new-item, remove-item: fix style * psversiontable, remove-item: fix style --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
21 lines
628 B
Markdown
21 lines
628 B
Markdown
# 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\to\directory}}`
|
|
|
|
- Remove a directory and its contents recursively:
|
|
|
|
`rmdir {{path\to\directory}} /s`
|
|
|
|
- Remove a directory and its contents recursively without prompting:
|
|
|
|
`rmdir {{path\to\directory}} /s /q`
|