Explorer: deleting files-How to skip 'An unexpected error' by default?

  1. Posts : 440
    Windows 10 x64

    Explorer: deleting files-How to skip 'An unexpected error' by default?

    Was deleting a (very) large number of small files. System is getting unresponsive and I need to wait 3-4 minutes before anything is happening.

    After finally the 'instruction' to delete was given ('OK' at 'Are you sure?') Windows Explorer starts.
    Deleting may very well take half an hour or an hour, so I went away to watch TV or do something else.

    Then after returning I noticed an error warning (explorer halted):

    1 Interrupted Action
    An unexpected error is keeping you from deleting the file. If you continue
    to receive this error, you can use the error code to search for help with this
    Error 0x80070050: The file exists.


    I then tag: "Do this for all current items" and click [Try Again]
    Deleting then continues.

    how to configure Explorer that this is the default, meaning to say, that Explorer will continue, no matter what.
    So deleting will go on, unattended.
    Right now it halts...


    Explorer: deleting files-How to skip 'An unexpected error' by default?-snagit-03062017-170905-copy.png

      My ComputerSystem Spec

  2. dalchina's Avatar
    Posts : 19,907
    Win 10 Pro (1903)

    Suggestion or two here:
    Problems deleting large number of files - painfully slow.... - Windows 7 Help Forums

    Researching the error message didn't obviously offer a clear solution.
    You could check the event log and see if there's anything there.

    As regards continuing that action, you could write a small script in Autohotkey that would press that button; there used also to be a utility that would do that, PTFB I think.. no idea if it's compatible with Win 10.

    Here it is (free):

    Download PTFB (Push the Freakin' Button) - MajorGeeks
      My ComputersSystem Spec

  3. Edwin's Avatar
    Posts : 13,381
    Windows 10

    You can modify or create a setting in the Windows Registry to keep "Do this for all current items" checked.
    Modify the DWORD in the right pane, (or create it), ConfirmationCheckBoxDoForAll and set it's value to 1

    Explorer: deleting files-How to skip 'An unexpected error' by default?-000238.png

    Or, you can install Winaero Tweaker to do it for you.

    Explorer: deleting files-How to skip 'An unexpected error' by default?-000239.png
      My ComputerSystem Spec

  4. Posts : 440
    Windows 10 x64
    Thread Starter

    Thanks to you both.

    As for the registry setting, I believe it is set to '1' already.

    Explorer: deleting files-How to skip 'An unexpected error' by default?-snagit-04062017-135715.png

    But apparently that did not really help.

    What I am not sure of right now is using the command prompt,
    something like
    del /s /q /f (followed by a part of the name, with wildcard or so)

      My ComputerSystem Spec

  5. dalchina's Avatar
    Posts : 19,907
    Win 10 Pro (1903)

    Try that utility. I remember using it years ago.

    Or you could try using a boot disk such as Kyhi's at the top of the Software and Apps section and then delete them.
      My ComputersSystem Spec

  6. Posts : 440
    Windows 10 x64
    Thread Starter

    I'll check it out, thanks again.
      My ComputerSystem Spec

  7. Posts : 440
    Windows 10 x64
    Thread Starter

    Gave it a test with deleting 28,000 files: they were deleted within 15 seconds.
    Yesterday, due to some program mistake, I was facing 525,000 small files. Using the normal File Explorer it took many hours to delete these files. Using this command, it probably would have taken 5 minutes or so.

    del /s /q /f *.part*.tst

    (where the file contained the word: .part

      My ComputerSystem Spec


Related Threads
I'm trying to move various data files from C:\ to other drives. I successfully moved Pictures to the drive I dedicate to pictures, and Downloads to a data drive. Bu t when I try moving Desktop to a data drive, I get the attached error message:...
Deleting .ETC files in General Support
I came across a folder which was reported as empty and tried to delete it. I had to take ownership but still could not delete it --- then found it had around 10 MB of .ETC log files relating to such things as incorrect shutdown from last year and...
Hi there Is there a Windows command that can copy files from say directory A to directory B but skip any with the same name I don't want to update even if say directory A has a newer version than directory B --simply use existing names --if it...
Using Windows 10 Home. This problem only happens if I'm performing a search. If I search within a folder for say *.* and then delete a file, the list of files does not refresh. The file remains listed even though it's been deleted. If I...
Can the "Replace or Skip Files Confirmation" window be changed to the way it was in Windows 7? The one on windows 10 is inconvenient and even at times confusing (Like when backing up text files from my hard drive to a flash drive into a fold of the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:49.
Find Us