-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast Delete #1643
Comments
I love this idea |
I’d love to take a stab at this one. |
@wjk, do you want me to assign it to you? |
Yes please. |
done and done :) I'd imagine this would be part of the "File Explorer" section, fyi for enabling / disabling |
@wjk Any progress here so far? Just to have the PowerShell version documented, e.g.: |
@kapsiR I immediately ran into problems setting up the UI for this feature. Writing a shell extension according to the spec — that’s easy. Getting it integrated into PowerToys’ settings UI in the many disparate ways that are required — that's hard. The documentation and code here really needs a rewrite. I haven't touched this in months. Sorry about that! |
@wjk, please reach out if you have any issues. Lets fix both the collaboration docs fixed as well as get this added in. Either here or [email protected] |
always remember, programming is a team sport, never go it alone |
The article you linked to states "It may take ten or twenty minutes, or even longer, to delete a large folder using Explorer on Windows devices.". Recycling items/deleting items to the recycle bin is super slow. 'Perminant' delete is fast. To perminantly delete, select the files and press shift and del at the same time. I've just tested this now on my SSD to make sure i wasn't talking nonsense as i don't think about it anymore. Looking at the docs https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/del Without doing a speed comparison, i imagine they're both similar in speed. |
I did the following test using the PowerToys repo after a full build as test folder to delete: I used a mechanical SATA drive, after creating the test folders and after rebooting Windows to make sure nothing was in the Windows cache: The difference doesn't seem to justify a new PowerToys module with all the work that will require to maintain and support it. |
@wjk did you ever do some speed tests for this? |
@crutkas I'm afraid I didn't. Things have gotten rather busy due to my university schedule. I do agree with @enricogior that this tool might well be unnecessary. If you want to close this issue and the associated PR for this reason, I'm perfectly OK with that. Thanks! |
@wjk |
@enricogior, i just did this on two sets of PT clones after a full compile. 12 gigs with about 75k files 21 seconds <- directly running DEL /F/Q/S . > NUL Speed wise, this is pretty drastic |
@crutkas |
this was exact same data. Base folder was copied to two new dirs on same drive on a SSD not on my c drive. |
@crutkas |
was not done in parallel. Did test 1 then test 2. happy to do multiple tests and average but i think 'real world' is critical. |
@crutkas
In other words, the data should be recreated after each test, it should not be created for both tests and then run the tests. |
Summary of the new feature/enhancement
If you want to delete a lot of files (large number of files, not large files) thru File Explorer, right now it is a very slow process, compared to doing the same thru the command line.
Proposed technical implementation details (optional)
I would like to have a power option that enabled me to fast delete a selection of files from Explorer. Pretty much what this provides:
https://www.ghacks.net/2017/07/18/how-to-delete-large-folders-in-windows-super-fast/
Which is pretty much this:
DEL /F/Q/S *.* > NUL
That would be much better than typing the command!
The text was updated successfully, but these errors were encountered: