Link to home
Start Free TrialLog in
Avatar of adrian78
adrian78

asked on

Deleting a folder with 1 million files on Windows Server 2008

I am trying to delete a folder that has about 1 million files in it.  It is a Windows Server 2008.  It is a temporary folder containing small XML files that were I guess downloaded when a SQL Server Job was being executed that imported data from an XML Feed.

The problem is that I try deleting the files via command prompt and it just doesn't work.  I think it ends up hanging due to enumerating the files.  I am not sure how to delete all of the files without enumerating.

Any help would be appreciated!
SOLUTION
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
one other option could be open folder within WinRAR and delete from WinRAR itself, you do need to install WinRAR trial version on server

I have used WinRAR to delete folders which contains files with more than 220 characters long
Avatar of adrian78
adrian78

ASKER

Thanks guys!  The hosts manage to do it for me just before your solution was posted but I'll be using it for future.  Appreciate it.
Glad to Help Adrian :)