Skip to content

Instantly share code, notes, and snippets.

@taverasmisael
Created October 19, 2015 16:12
Show Gist options
  • Save taverasmisael/ef33e8aa6d51332ccadd to your computer and use it in GitHub Desktop.
Save taverasmisael/ef33e8aa6d51332ccadd to your computer and use it in GitHub Desktop.
This PowerShell script simply delete, with robocopy, a folder with large path files on windows. By default it deletes node_modules
# Use: removeLarge.ps1 folder_you_want_to_delete
param([String]$folder='.\node_modules')
mkdir empty_dir
robocopy empty_dir $folder /s /mir
rmdir empty_dir
rmdir $folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment