Skip to content

Instantly share code, notes, and snippets.

@timgaunt
Created August 14, 2015 06:47
Show Gist options
  • Save timgaunt/fab448bf6a889904f02a to your computer and use it in GitHub Desktop.
Save timgaunt/fab448bf6a889904f02a to your computer and use it in GitHub Desktop.
Delete files after a number of days
forfiles -p "< Path To Folder >" -s -m *.* /D -< Number of days ago > /C "cmd /c del @path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment