These commands recursively delete the files and subfolders in the target. /Q suppresses confirmation. A wrong target can cause irreversible data loss, so back up anything important and verify both the parent path and folder name before running the deletion. Speed varies with the number of files and storage; it is not guaranteed to be faster.
Steps
In this example, C:\Parent is the parent directory and Large Folder is the folder to remove. First list the target to verify it, then delete it.
| |
DEL /F /Q /S deletes files under the target (/F includes read-only files, /Q suppresses prompts, and /S includes subdirectories). RMDIR /S /Q then deletes the entire directory tree without confirmation. Replace C:\Parent and Large Folder with the real values, and inspect the dir output before running either deletion command.
