Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to delete over a million files without having to be there to select "Continue" when item in use

Got a new MacBook Pro. Have incremental backups on external attached hard drive for my old mid-2010 MacBook Pro (Yosemite 10.10.5). But have an another 1TB HD with unneeded backups (Backups.backup.db). Thought I'd do one nice full backup on that drive. But not enough room, so want to delete those old backups.


I connected this 1TB drive to the older, mid-2010 computer, and moved all folders to to Trash, and selected "Empty Trash". Files counted up and up, and up! This was in the evening, so I let it do its thing overnight. Today, over a million (1,000,000) files to delete. So, to empty the Trash, I have to sit at the computer because I am continuously getting messages such as "The operation can’t be completed because the item “CoreServices” is in use." Or "System" or "Macintosh HD."


I can hit "Continue" and item is deleted, but, I can't sit here all day. (Now am down to 806,000 to delete). I understand I could use Terminal to do this, but I'm afraid if I hit the "x" to stop the Trash emptying, the computer will hang.


Anyway to automate "Continue?"


What to do? I just should have reformatted that drive if I had known better. Or, can I kill this process somehow and then use Terminal to empty Trash? I am somewhat familiar with Terminal commands if someone gives me the command. Thank you!

Posted on Mar 1, 2018 7:39 AM

Reply

Similar questions

1 reply

Mar 1, 2018 3:01 PM in response to wkathym

I would format with Disk Utility. But, it's alarming to me that these items are showing as in use. So I guess I say, proceed cautiously? I find disk utility faster for emptying a drive to use for something new. From experience, even deleting from the command line will take time. And with Terminal, there's no status while it is going. And if this is a 1tb drive that is not SSD, and it's full, it will take time for sure.

How to delete over a million files without having to be there to select "Continue" when item in use

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.