Faster way to delete files on a network drive

3

I have a network drive and I am trying to delete a large folder. Man what a pain!

It's been on the "Calculating" phase forever now (it's at 26GB). Isn't there a way to just delete boom! I don't need to know how many files and how big they are!

I'm using Windows 7. I am using "shift" delete to skip the recycle bin.

nute

Posted 2010-07-02T20:29:39.140

Reputation: 1 459

Duplicate of http://superuser.com/q/19762/83235?

– Hugo – 2011-05-27T12:11:12.523

Answers

5

You might be able to use the command prompt. I might be off on some of the details of the procedure, but try this:

  1. Open the Start Menu and in the text box, type cmd.exe and hit Enter (or open the command prompt using your preferred method)
  2. Switch to the network drive by typing Z: (where Z is the letter of the network drive)
  3. Change to the parent directory of the directory you're trying to delete using cd path\to\parent\directory
  4. Delete the directory using rmdir /S giantdir

For example, if you want to delete the directory O:\MG\WTF\BBQ\SOMANYFILES:

C:\Documents And Settings\Me> O:

O:> cd MG\WTF\BBQ

O:\MG\WTF\BBQ> rmdir /S SOMANYFILES

Or now that I think about it, I think you could just do

C:\Documents And Settings\Me> O:

O:> rmdir /S MG\WTF\BBQ\SOMANYFILES

but you would miss out on the chance to see Windows spell out OMGWTFBBQ in terminal font ;-)

By the way, rmdir (or del) does not move things to the Recycle Bin, it just deletes them, so be careful not to delete things you don't really want to.

David Z

Posted 2010-07-02T20:29:39.140

Reputation: 5 688

1You don't need the +.exe, it will run just fine if you type cmd and hit enter. – Corey – 2010-07-02T20:57:26.160

I do W:\>del backup-043010, then it says W:\backup-043010\*, Are you sure (Y/N)? Y. After a fraction of second it says it's done, but the folder is still here! – nute – 2010-07-02T21:08:17.870

try w:\rmdir backup-04310 – W_Whalley – 2010-07-02T21:31:43.203

@Corey: thanks, I'm more used to Linux so I forget about those details. @nute: OK, apparently del doesn't quite act the way it seems like it should, based on the help text. Try rmdir instead. I will edit my answer accordingly. – David Z – 2010-07-02T21:35:54.647

is that really faster than through explorer? – nute – 2010-07-03T00:11:02.713

I would think so... for one thing, it doesn't bother to count up the number of files it's deleting, or their total size. At least it's definitely not slower. – David Z – 2010-07-03T02:28:11.050

0

I have similar issue. have 500G folder with tiny files to remove and window delete not work at all. The best way I found is using ftp to connect to NAS and delete the file which I could delete about 100+ files/ sec.

Your NAS may or may not support ftp option. but if it does, you r in luck

Nyan Swun Saung

Posted 2010-07-02T20:29:39.140

Reputation: 1