Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zalle

macrumors regular
Original poster
Jun 2, 2008
233
9
Hi guys, need a little help here:

I deleted some older time machine backups (I shouldn't have, now I know), and they are in the trash.

I'm trying to delete the files but I get a message saying "The operation can’t be completed because the item “Macintosh HD” is in use."

Macintosh HD is my internal drive.

This is a 2013 iMac and it's running on Sierra.

How do I delete the files in the trash?
 
  • Like
Reactions: mcfitz5
You should not delete time machine backups using the Finder. This leads to problems like you 're having.

You can :
- Erase your external drives using the Disk Utility
- Remove your files from the external drive via the Terminal app so they do not go to the Trash

BUT: why would you manually remove time machine backups ? It's normally an automatic process and you should not interfere.
 
Hi yellow8,

I appreciate your help.

I understand I should not have erased my backup files. Thing is I was in the middle of some backup stuff to the external drive I also use for time machine, and it ran out of space, so I deleted some backup time machine files (stupid...).

I then found out that Time Machine was cleaning backup files for itself, and it cleared 600GB, BUT I now have some files in the trash (if I remove the external drive, the trash files disappear).

They're not even using space really, but they are there, and it's annoying. Look:

Screen Shot 2018-02-26 at 11.45.52.png
 
plug the TM drive back in and select items in the trash and restore.

they are symbolic in trash they are still on the external.

Then let TM automatically remove them when it needs to or as said remove with terminal commands.
do not interfere with TM process.
 
Well... I have a PUT BACK option on other files, in the trash, but not on these files. The PUT BACK option does not come up.
 
probably due to fact TM files are not editable.

Terminal might be your only option.

Personally I do not know how to do it with terminal.
 
When you delete files on an external drives, it is symbolic-linked to the trash.
So to solve your problem, I would suggest to :
- plug the external drive
- open Terminal.app
- enter the following command: cd /Volumes/<your drive name>/
- enter the following command: sudo rm -rf .Trashes
--> This will remove the deleted files (that are in the trashes) and effectively free up the space on your drive
 
When you delete files on an external drives, it is symbolic-linked to the trash.
So to solve your problem, I would suggest to :
- plug the external drive
- open Terminal.app
- enter the following command: cd /Volumes/<your drive name>/
- enter the following command: sudo rm -rf .Trashes
--> This will remove the deleted files (that are in the trashes) and effectively free up the space on your drive

Just wanted to say thanks for this! I went about clearing time machine space the wrong way (through Finder) and this fixed the issue! Cheers!
 
  • Like
Reactions: mcfitz5 and yellow8
Hey, I guess it worked... Thanks yellow8 !!

Just one more question If my drive name is composed by 2 words "Backup Home" for example, the following command does not work: cd /Volumes/Backup Home/

What do I do? something like Backup_Home Backup.Home or similar?

Thanks
 
You can use a backslash followed by a space, e.g. /Volumes/Backup\ Home, or put quotation marks around the path, e.g. "/Volumes/Backup Home".

Another good tip is to use the auto-completion feature by pressing the tab key. When you start typing /Volumes/Bac and then press the tab key, it will complete the path for you.
 
Just wanted to say thanks for this! I went about clearing time machine space the wrong way (through Finder) and this fixed the issue! Cheers!
It worked!!! It actually works! Thank you! Thank you!
[doublepost=1543441953][/doublepost]
You can use a backslash followed by a space, e.g. /Volumes/Backup\ Home, or put quotation marks around the path, e.g. "/Volumes/Backup Home".

Another good tip is to use the auto-completion feature by pressing the tab key. When you start typing /Volumes/Bac and then press the tab key, it will complete the path for you.

This was super helpful too putting the " " around "/Volumes/Backup Home"! Thank you!
 
When you delete files on an external drives, it is symbolic-linked to the trash.
So to solve your problem, I would suggest to :
- plug the external drive
- open Terminal.app
- enter the following command: cd /Volumes/<your drive name>/
- enter the following command: sudo rm -rf .Trashes
--> This will remove the deleted files (that are in the trashes) and effectively free up the space on your drive

This worked. THANK YOU!!!!!
 
  • Like
Reactions: yellow8
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.