I have a large source code folder which consists of 82,480 Files, 19,633 Folders. It is added to Library for fast access. When I delete it from library, it takes forever to prepare deleting and calculating. About 1 hour or so.

Then I did research and found that when deleting from its absolute path – like go to D:\work\bigfolder and right click and delete – it only takes seconds to prepare.

Do you know what Windows 7 Library is doing when prepare deleting?

  • It's probably related to Search Indexer... – HaydnWVN Dec 8 '11 at 15:17
  • 1
    another reason not to use windows libraries. – Moab Dec 9 '11 at 1:45
  • It makes me wonder though, how often are you deleting it in the first place and if you are, why? – surfasb Dec 9 '11 at 12:59

It's (most likely) searching all the folders attached to the Library for the file(s) you selected to create full file paths for the deletion.

This is a required additional step, in comparison to deleting files from a specific path/folder, as files in a Library are not necessarily coming from the same folder.

  • I think your answer makes sense. Although one folder under Library should belong to a physical folder, it may still need to calculate each file's absolute path. The fact I find makes me avoid using Library in future. – Sheen Dec 8 '11 at 21:50
  • @Sheen Well if you like any of the answers, you can always vote them up, and/or accept them. Unfortunately you're really asking for an answer to an 'unfixable' problem. – Ƭᴇcʜιᴇ007 Dec 8 '11 at 22:45

Nope, I don't.

But if you're curious, you can use Process Monitor to find out.


I just tried deleting a folder on my computer, and the Process Monitor output showed that it was enumerating every file and folder contained. In your case, this would mean it has to read the information on ~102k files to delete them. In my case, there were ~40k files, and it took about a minute on an SSD. This time would be much higher on a traditional hard drive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.