0

I was doing a program in Java and I've created, recursively, a folder that has a folder in, and so on.

I've tried to delete it but Window says it can't be deleted because is too big.

How can I delete it? Already tried rmdir /s /q and nothing.

Need Help.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • Is it really infinite? or is it just really deep? the only possible way I think it could be infinite would be if it was using links and not folders – jbg Jun 07 '15 at 18:24
  • Robocopy will work, as per [this answer](http://superuser.com/a/423821/96662). – Harry Johnston Jun 07 '15 at 23:10

2 Answers2

2

\\?\ turns off file name checks.

rmdir /s /q "\\?\c:\somefolder\somefile.ext"

For explanation, see What does \?\ mean when prepended to a file path, which points to Naming Files, Paths, and Namespaces (MSDN).

Community
  • 1
  • 1
1

You could boot from an Ubuntu Live CD/DVD and delete the folder. The command would be:

rm -rf myBigFolder
donjuedo
  • 2,475
  • 18
  • 28
  • If you have git installed with Unix commands, then you can use Unix-like commands on Windows. Meaning you can delete the "infinite" folder using the same command, i.e. `rm -rf myBigFolder` – Filip Markoski Sep 15 '19 at 11:19