NanoTech-kw · Tech Guide Library

RMDIR CMD (Remove Directory)

Windows · CMD

Remove an empty directory, or a folder tree with all its contents. Syntax: rmdir [path] [/s] [/q]

Step-by-step

  1. Open Command Prompt (press Win+R, type cmd, and press Enter)
  2. Syntax: rmdir [path] [/s] [/q]
  3. Brief: Remove an empty directory, or a folder tree with all its contents.
  4. Example: rmdir /s /q C:\Work\OldBackup
  5. Tip: Also works with the rd alias; /q skips the confirmation prompt.

Reference: learn.microsoft.com

Open in the NanoTech-kw library →