Remove the named project build directory and its contents; confirm the path before using /s.
rmdir /s project\buildRemove a directory; /s removes its tree and contents.
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.
Remove the named project build directory and its contents; confirm the path before using /s.
rmdir /s project\build| Option / clause | Description |
|---|---|
/s | Remove the directory tree and its contents. |
/q | Suppress confirmation when used with /s. |
[<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. |
<path> | 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.