Example usage for rd.
rd /s /q .\buildRemove a directory; this is an alias of rmdir.
rmdir [<drive>:]<path> [/s [/q]]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example usage for rd.
rd /s /q .\build| Option / clause | Description |
|---|---|
/s | Delete the directory tree and its contents. |
/q | Suppress confirmation when used with /s; deletion is irreversible. |
<path> | Specify the directory to remove; the current directory cannot be removed. |
[<drive>:]<path> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
<drive> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.