Skip to content

Instantly share code, notes, and snippets.

@mkropat mkropat/DeleteQueue.bat

Last active Aug 29, 2015
What would you like to do?
Fast-delete the files in the delete queue
:: DeleteQueue.bat - Fast-delete the files in the delete queue
:: Instructions:
:: 1. Create the folder `C:\DeleteQueue`
:: 2. Create a scheduled task to run this batch file every night
:: Now any (potentially large) files or folders you move into
:: `C:\DeleteQueue` (a nearly instantaneous operation) will be deleted
:: overnight, without interrupting your flow.
:: (Optional) Repeat the above instructions for every other drive you want to
:: delete large files from.
:: Based on a post by Hugo (
set DELETEQUEUE=C:\DeleteQueue
del /f/s/q %DELETEQUEUE% > nul
rmdir /s/q %DELETEQUEUE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.