S
S
sitepro2018-04-06 21:01:59
Windows
sitepro, 2018-04-06 21:01:59

How to delete a file with infinite folders?

Hello everybody.
There is a folder on a PC running the immortal Windows 7. It's not clear how it happened, but the cache folder from PrestaShop 1.6 (in my opinion) remained. When trying to remove the unlocker from iObit, it did not work. With the help of total commander - did not give results. The system itself does not remove the same. Total Commander explains the reason for non-deletion by the fact that folders and subfolders consist of more than 4 thousand branches !!!! how this happened is not clear. Basically, it needs to be removed. Human mind - respond please. I make the issue difficult.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2018-04-06
@AlexMaxTM

Have you tried via console?
rd /s C:\my_dir

A
Artem @Jump, 2018-04-07
curated by the

If manually - climb the folder tree as deep as possible, and create a network ball.
Then go to this network ball and delete everything below.
Instead of network balls, you can use mounting folders using symlinks.

B
bkosun, 2018-04-06
@bkosun

Use DeepRemove or RoboCopy (standard Windows utility):
Create an empty directory and use the /MIR flag to reflect the empty directory in the problem folder. Then you can delete the empty directory in the usual way. Deleting the mirror directory also deletes the problematic directory.

mkdir emptyfolder && robocopy emptyfolder .build /MIR
...или просто:
mkdir emptyfolder && robocopy emptyfolder deletefolder /purge

www.numediaweb.com/delete-deep-nested-folders-in-w...
https://blog.bertvanlangen.com/articles/path-too-l...
PS It seems like the IntelliJ IDEA tools can easily delete such folders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question