Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

fast delete a number of files

Posted on 2006-06-12
9
Medium Priority
?
11,769 Views
Last Modified: 2010-12-13
Hello,
I have some offline websites. I had more than 15000 files and folders( all stored in a foler). Deleting all these things is a nightmare, even when i used winrar(I checked delete files after finished). It took a lot of time. I wonder whether there is a software can wipe all these file within a minute? Thanks
0
Comment
Question by:binocular222
[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
9 Comments
 
LVL 23

Expert Comment

by:basicinstinct
ID: 16884168
why not just delete the top-level folder?
0
 

Author Comment

by:binocular222
ID: 16884239
Windows can delete but very slowly. 15000 file!
0
 
LVL 15

Expert Comment

by:deepaknet
ID: 16884423
Did you try using command prompt?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 2

Accepted Solution

by:
Night0wl earned 100 total points
ID: 16884522
using windows will probably be the fastest solution because it only removes the header informarion from the files, unllike winrar which parses the files into memory and compresses it thus adding another step to the process. The easiet way is probably a combination of basicinstinct and deepaknet. Use a command line and navigate to the top-level folder and type rmdir foldername /S or go in one folder and type del *.* /S and then delete the top-level folder. Using the /S switch will surpress the warnings windows gives when you delete a hidden file, a sytem file (thumbnail caches) or a read only file. This way you can set it up to run over night.
0
 
LVL 10

Assisted Solution

by:GuruGary
GuruGary earned 100 total points
ID: 16886019
Yes, I agree with deleting them through the command prompt.  To update the notes from Night0wl, the /S will delete subdirectories, and it is the /Q parameter to supress the warnings.  So be VERY CAREFUL using this as it is easy to delete unwanted information using this.  Use:

rd /q /s "X:\path\to\top level directory\"
0
 
LVL 7

Expert Comment

by:CitizenRon
ID: 31027282
In case anyone else find this in a search:
 
 I had a cleanup project to do on a server that someone else "worked"  on.  They left 11,600,000 files in 412,000 folders behind on a drive  that desperately needed the space and I had to get it cleaned ASAP  without doing anything bad to the server.
 
 I used a trick with ROBOCOPY.EXE to delete those 11.6 million files in  just a couple hours.  Use the MIRROR (/MIR) switch (which copies or deletes files as needed to make the Destination folder and EXACT copy of the Source folder) with RoboCopy and  copy an empty folder to the  folder containing all the files you need quickly removed.
  1. Create a Temp folder, something like "C:\RoboTemp"
  2. Copy the folder to the folder you want deleted using the /MIR  switch
  3. ROBOCOPY C:\ROBOTEMP C:\FOLDERTODELETE /MIR
  4. Sit back and watch the files disappear lightning fast
  5. Delete the now-empty folder that used to contain millions of files  and the empty Temp folder
  Something about the way RoboCopy deletes files when mirroring makes it extremely fast, faster than any other (free) method I've found in Windows.
 
0
 

Expert Comment

by:mbooher
ID: 34340955
CitizenRon,

You have saved me HOURS of time - thanks for this GREAT suggestion!  It is working like a champ!  Using Win7, my system was deleting about 2 files per second.  Now it is ZIPPING along!!!
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

705 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