?
Solved

Remove very large folder on Windows

Posted on 2011-02-21
6
Medium Priority
?
713 Views
Last Modified: 2012-05-11
I have a very large folder containing 600000 files. I want to remove it as fast as possible. How do I do that?
0
Comment
Question by:Frans_Truyens
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Accepted Solution

by:
Patricck earned 800 total points
ID: 34941115
0
 
LVL 20

Expert Comment

by:woolnoir
ID: 34941133
rmdir /s /q folder

doing it through windows explorer will take an age due to the estimation calculations it uses, the command prompt will be 'almost' instant in theory.
0
 
LVL 9

Assisted Solution

by:Tomas Valenta
Tomas Valenta earned 400 total points
ID: 34941135
in command prompt type: del /s /q FolderToDelete
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 20

Assisted Solution

by:woolnoir
woolnoir earned 400 total points
ID: 34941150
There is also a difference between deleting and 'shift deleting' in windows as the latter avoids the copy to the recycle bin. Fast copy as suggested above is a good option, but often not much faster than windows explorer.

Id try the 'rmdir' approach i stated above, or the del as Tominov suggests, see which works best for you.
0
 
LVL 6

Assisted Solution

by:Kris Montgomery
Kris Montgomery earned 400 total points
ID: 34941263
I have found that FastCopy is the very fastest method to delete many files:
http://ipmsg.org/tools/fastcopy.html.en

Can also be used for copying, but I have primarily used it for deleting.

Lastly, it has a GUI, but you can also use it in command line.  If you are regularly deleting that many files, you may want to write a quick batch file for deleting specific folder files.

Thanks.
mug
0
 

Author Closing Comment

by:Frans_Truyens
ID: 34941640
Thanks a llot. This solved my problem.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question