Created
June 6, 2020 21:26
-
-
Save jamiejohnsonkc/3fa9c3572ded9c3aee4f44103f4f2353 to your computer and use it in GitHub Desktop.
Windows Fast Delete Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEL /F/Q/S *.* > NUL | |
| /F -- forces the deletion of read-only files. | |
| /Q -- enables quiet mode. You are not ask if it is ok to delete files (if you don't use this, you are asked for any file in the folder). | |
| /S -- runs the command on all files in any folder under the selected structure. | |
| *.* -- delete all files. | |
| > NUL -- disables console output. This improves the process further, shaving off about one quarter of the processing time off of the console command. | |
| RMDIR /Q/S foldername | |
| /Q -- Quiet mode, won't prompt for confirmation to delete folders. | |
| /S -- Run the operation on all folders of the selected path. | |
| foldername -- The absolute path or relative folder name, e.g. o:/backup/test1 or test1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment