Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Since Windows XP or before, you are able to force delete a file by holding down shift while pressing delete.

For some time now I've noticed if you select a LARGE number of files (e.g. 20k) or so, shift-delete does not force delete - instead it presents the option to send to recycle bin in the same way as if you had just pressed delete.

In trying to consistently reproduce this error I have found that it is not based on a pure threshold. Sometimes I am able to properly shift delete 10k files, sometimes it prompts me to recycle 5k.

It makes me suspect that something asynchronous is going on in the background but I can't really speculate as to what.

The short and sweet of it is, is there a way I can consistently shift-delete a large number of files?

Running W7 64-bit for what it's worth. I think i experienced this in XP as well but can't say for certain.

share|improve this question
    
+1 for the most interesting question I've yet seen on this site! –  evamvid Mar 11 '14 at 1:33

1 Answer 1

up vote 8 down vote accepted

I've just made 21,000 test files and tried.

  • If I hold shift, press delete, let go of both keys, there's a pause and then it prompts to recycle.

  • If I hold shift, press delete, let go of delete, but keep holding shift until the popup appears, it prompts to permanently delete.

This is repeatable.

I guess it's scanning the files first, then checking if shift is pressed, and there's a rough cutoff where scanning the files takes longer than a short shift press; so keep holding shift until the popup appears. Does that happen the same for you?

# PowerShell code to create 20,000 test files
foreach ($i in 1..20000) { echo hi > "$i.txt" }

rem command prompt code to create 20,000 test files
for /L %i in (1,1,20000) do @echo hi > %i.txt
share|improve this answer
    
wow - embarassed I did not think of this. Thanks! –  fostandy Mar 11 '14 at 3:43
    
@fostandy just curious, what are you doing that you regularly need to delete thousands of files? –  TessellatingHeckler Mar 11 '14 at 17:35
    
Testing and developing some utilities that generate thousands of files :) As I know I don't need them I want to delete them outright. If you're curious about the specific nature of the files, each represents a 3D solid of geological (mining) data. –  fostandy Mar 13 '14 at 7:06
    
Yeah, gotta hold shift until the dialog pops up. –  Bigbio2002 Mar 14 '14 at 20:21
    
Microsoft working backwards as usual. Thanks for this, I wouldn't have thought to try it out. –  Ian Stanway Jul 3 '14 at 11:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.