Windows

rmdir

DestructiveRemove a directory

rmdir /S /Q <dir>

Removes a folder. /S includes contents, /Q is quiet.

Examples

  • rmdir /S /Q C:\tempDelete folder and contents

Syntax

rmdir [/S] [/Q] <dir> (alias: rd)

Before you run it

/S deletes everything inside, irreversibly.

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store