Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Created June 6, 2020 21:26
Show Gist options
  • Select an option

  • Save jamiejohnsonkc/3fa9c3572ded9c3aee4f44103f4f2353 to your computer and use it in GitHub Desktop.

Select an option

Save jamiejohnsonkc/3fa9c3572ded9c3aee4f44103f4f2353 to your computer and use it in GitHub Desktop.
Windows Fast Delete Commands
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