Solved

Remove very large folder on Windows

Posted on 2011-02-21
6
706 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
6 Comments
 
LVL 3

Accepted Solution

by:
Patricck earned 200 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 100 total points
ID: 34941135
in command prompt type: del /s /q FolderToDelete
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 20

Assisted Solution

by:woolnoir
woolnoir earned 100 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 100 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

The question has been asked on multiple occasions as to how best to do printing in a remote desktop or terminal services environment.   It seems that this particular question has plagued several people and most especially as Terminal Services, as…
Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

773 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