Link to home
Start Free TrialLog in
Avatar of binocular222
binocular222

asked on

fast delete a number of files

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
Avatar of basicinstinct
basicinstinct
Flag of Australia image

why not just delete the top-level folder?
Avatar of binocular222
binocular222

ASKER

Windows can delete but very slowly. 15000 file!
Avatar of Deepak Vasudevan
Did you try using command prompt?
ASKER CERTIFIED SOLUTION
Avatar of Night0wl
Night0wl

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
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
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.
 
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!!!