You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Can't empty Trash because an item is in use

I can’t empty the Trash on a Mac running High Sierra, despite having tried all the usual methods.


There are only two files in Trash: “Backups.backupd” and “LittleMac” (both with many subfolders).

When I try to empty Trash, I get “The operation can’t be completed because the item “foo” is in use”

(where “foo” is one of the subfolders).

When I select a folder and press Command-Option-delete, either the folder disappears then immediately reappears, or I get the message “The operation can’t be completed because the item “foo” is in use” (where “foo” is the name of some subfolder of the one I selected).

Control-click and “Delete Immediately…” produces the same result.

I have tried restarting, and it makes no difference.

I have tried dragging the items to the Desktop so I could Command-Option-delete them from there, but dragging them performs a copy rather than a move, so I’m still left with the original in Trash.


None of the folders have any contents except subfolders. They are all size zero or 10 KB.

I have read and write permission on every folder and subfolder.

The folders are what’s left of Time Machine backups, but Time Machine is no longer configured.

That is, Time Machine is not running, and has no backup disk selected.

I have no applications running, and none are hidden.

I have tried running “lsof ~/.Trash” and it lists nothing (except “.” and “..”) in the directory. (Just to check, I tried moving another file into the Trash, and "lsof ~/.Trash" did find that one.)


Any suggestions?

MacBook Air

Posted on Jul 5, 2022 2:20 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 8, 2022 7:48 AM

In that case, try using Terminal. Type the commands below exactly as shown (but do not press Return yet)-


sudo rm -R


Make sure there is a space after the 'R' at the end! Then, open the Trash. Select all the files, then drag and drop them into the Terminal window. Hit Return, then enter your admin password. This should force the Trash to delete those files.

Similar questions

9 replies
Question marked as Top-ranking reply

Jul 8, 2022 7:48 AM in response to Tim.Leonard

In that case, try using Terminal. Type the commands below exactly as shown (but do not press Return yet)-


sudo rm -R


Make sure there is a space after the 'R' at the end! Then, open the Trash. Select all the files, then drag and drop them into the Terminal window. Hit Return, then enter your admin password. This should force the Trash to delete those files.

Jul 8, 2022 7:18 AM in response to dialabrain

I tried booting in Safe Mode, and Backups.backupd was gone before I did anything else, but the LittleMac folder was still there and still can't be deleted.


When I "Empty Trash", or select a folder that has subfolders and press Command-Option-delete, I get the message “The operation can’t be completed because the item “folders” is in use.”

When I select a folder with no subfolders and press Command-Option-delete, the folder disappears then immediately reappears.

In Terminal, "ls -al ~/.Trash" and "sudo ls -al /.Trashes" both list nothing but "." and ".."


Can't empty Trash because an item is in use

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