it does not always work if I want to delete a lot of files

General discussion related to "Everything".
Post Reply
Debugger
Posts: 531
Joined: Thu Jan 26, 2017 11:56 am

it does not always work if I want to delete a lot of files

Post by Debugger » Wed Dec 26, 2018 8:35 am

1. it does not always work if I want to delete a lot of files SHIFT + DEL
Example: 150000 small files.

2. it works always SHIFT + DELETE(Contex Menu) This method was proposed by my friend, but he did not explain why in this case he always works the first time.


Why?

void
Site Admin
Posts: 4937
Joined: Fri Oct 16, 2009 11:31 pm

Re: it does not always work if I want to delete a lot of files

Post by void » Wed Dec 26, 2018 10:45 am

It's a limitation with Everything and an old Windows API to delete files.

If one file fails to delete, then the whole delete operation is aborted (silently).

The next version of Everything will use a newer delete API (if available), which will not abort the deletion on a single failure.
The failure is also reported and the user is given an option to retry/skip/cancel the current operation.

The context menu and DEL will both end up down the same code path.
Both will check each file to be deleted actually exists before the old delete API is called, improving the odds that the operation will not be aborted.

It is most likely a file was deleted or renamed before the delete operation began.

Debugger
Posts: 531
Joined: Thu Jan 26, 2017 11:56 am

Re: it does not always work if I want to delete a lot of files

Post by Debugger » Thu Dec 27, 2018 11:45 am

I'm pressing the SHIFT key and the DEL key, but instead of permanently deleting it, I get information about moving to the recyclebin.

Post Reply