• April 11, 2021, 09:20:03 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Very slow deleting files  (Read 6295 times)

mdg

  • Level 1 Member
  • *
  • Posts: 21
Very slow deleting files
« on: September 10, 2016, 08:47:11 PM »

I"m deleting old backups - probably around 100,000 files - my guess is its going to take many hours at at least 1 second per files.

Doing the delete from WIn7 desktop using an Explore type utility 'Directory Opus'

If I do it with a DOS ccmand DEL - it goes much much faster.
Logged

RYAT3

  • Level 10 Member
  • *****
  • Posts: 2240
Re: Very slow deleting files
« Reply #1 on: September 10, 2016, 08:55:37 PM »

Is this a complaint or a suggestion for a howto?   ???
Logged

mdg

  • Level 1 Member
  • *
  • Posts: 21
Re: Very slow deleting files
« Reply #2 on: September 12, 2016, 11:08:16 AM »

If it's inherently slow with no solution - it's a complaint.

If I"m doing something wrong its "how to"
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49570
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Very slow deleting files
« Reply #3 on: September 12, 2016, 01:20:56 PM »

I recommend starting with a few files at first at see how long it takes then maybe increase how many you delete at once. Use small chunks of files.
Logged
Cable: 1Gb/50Mb>NetGear CAX80>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

TyM

  • Level 1 Member
  • *
  • Posts: 2
Re: Very slow deleting files
« Reply #4 on: September 13, 2016, 01:50:08 PM »

When I deleted about 20,000 files one evening I eventually went to bed and it finished sometime overnight.  Yes, a long time.
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Very slow deleting files
« Reply #5 on: September 15, 2016, 03:26:29 AM »

First thing check if you have in fact gained any free space.

I suspect that you used the normal windows delete to delete the files and the long time was windows moving them to the recycle bin and renaming them.  As one of our tests we deleted 55,000 small files to give us a benchmark if clients asked.  The delete took just under the hour which we considered acceptable, we also regained all the space on the RAID 1 array.

As mdg has found using DOS delete is much faster because it only marks the files as deleted - it marks the space as being available.  I suspect the DOS RD might be faster but we have not tested that.
Logged

mdg

  • Level 1 Member
  • *
  • Posts: 21
Re: Very slow deleting files
« Reply #6 on: September 18, 2016, 08:11:57 AM »

Thanks for the confirmation. Thankfully I don't need to do this often. I was moving my backup target to another DNS NAS and repurposng this one - needed to free up space.
Logged