troubleshooting Question

Deleting a folder with 1 million files on Windows Server 2008

Avatar of adrian78
adrian78 asked on
PowershellWindows Server 2008Microsoft SQL Server
5 Comments2 Solutions488 ViewsLast Modified:
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!
ASKER CERTIFIED SOLUTION
Ben Personick (Previously QCubed)
Lead SaaS Infrastructure Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros