1

I had a bug in my java app, which created a folder structure, which never ends..

So i have afolder structure like

C:/folder/folder/folder/folder/folder/.../...

Now I am not able to delete this folder anymore. Any ideas?

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
Tassilo Posegga
  • 431
  • 4
  • 7

2 Answers2

0

You can try PowerShell instead of DOS. I'm sure DOS probably has a lower maximum recursion depth than PowerShell.

Remove-Item -Recurse -Force c:/folder

You can also try Robocopy.

Create a directory in c:\folder called temp

Run robocopy c:\temp c:\folder /purge

If none of that works here is another solution: https://serverfault.com/questions/230119/massive-amount-of-subfolders-and-long-subfolders-how-can-i-delete-all-of-them

Travis
  • 1,054
0

Try pressing SHIFT + DEL on the root directory which will permanently delete the folder(s).

Hope that helps you :)

Sazid
  • 101