Created
October 19, 2015 16:12
-
-
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
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
# 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