Skip to content

Instantly share code, notes, and snippets.

@archagon
Created June 16, 2013 08:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save archagon/5791339 to your computer and use it in GitHub Desktop.
Save archagon/5791339 to your computer and use it in GitHub Desktop.
Sometimes Windows has trouble deleting directories with very long paths down in the lower depths. Fortunately, robocopy can magically circumvent this! Simply create an empty directory and mirror it into the directory you wish to delete.
robocopy /b /mir "C:\EmptyDir" "C:\DirToEmpty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment