RMDIR CMD (Remove Directory)
Remove an empty directory, or a folder tree with all its contents. Syntax: rmdir [path] [/s] [/q]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: rmdir [path] [/s] [/q]
- Brief: Remove an empty directory, or a folder tree with all its contents.
- Example: rmdir /s /q C:\Work\OldBackup
- Tip: Also works with the rd alias; /q skips the confirmation prompt.
Reference: learn.microsoft.com