rd
Windows CMD · Directories · available in the simulator · Also: rmdir
What it does
Removes an empty directory.
Syntax
rd [/s] [/q] [unidad:]ruta
Options and parameters
/sDeletes the entire directory tree.
/qQuiet mode.
/SRemoves the directory and all its contents, including subdirectories.
rd /s carpeta/QQuiet mode; does not prompt for confirmation when using /S.
rd /s /q carpeta
Usage examples
rd sistemasrd sistemas /srd sistemas /s /qrd carpetard /s /q carpetard /s carpeta
Notes and common mistakes
- Without /S, deletes only empty directories. rmdir is equivalent.