Subscribe to MacYourself via RSSSubscribe to MacYourself via EmailFollow MacYourself on Twitter
Apple Products and Accessories from

Trash won’t empty? The ultimate guide to deleting stubborn files

Trash won't empty? The ultimate guide to deleting stubborn files

Mac OS X occasionally gets hung up on stubborn files and refuses to easily delete them. If you can’t empty your Mac’s Trash, try some of these techniques to get rid of those nasty errors and clear out the junk.

As a Mac user, you’ve probably found yourself in a situation where you needed to force empty the Trash. Perhaps a message like “You do not have sufficient privileges” or “Error code -8003” kept popping up. In many (but not all) cases, troublesome files reside on an external volume or drive. Manually deleting Time Machine backups via Finder – which is a big no-no – commonly triggers these problems, for example. Other times, files on the main boot drive are in use by running applications and cannot be removed. There’s no shortage of possible scenarios.

Unfortunately there is no single solution for fixing a Mac with a Trash that won’t empty. So, much like MacYourself’s ultimate guide to ejecting a stuck disc article, we will explore a number of potential fixes. We’ll start off with the easiest and most common techniques first, then gradually move to the complex stuff that should only be attempted in the most dire situations. By the end, something should resolve your problem. Good luck!

Restart, then force empty

It’s amazing how many computer issues a simple system restart can fix. So, naturally, that is where we will start. But if you still can’t completely empty the Trash after restarting, let’s try forcing the issue. Click on the Trash icon in the Dock to open it in Finder. Hold down the Option key while clicking the “Empty” button. Still nothing? How about going to the Finder menu and selecting “Secure Empty Trash”?

Unlocking & renaming files

Are you getting an error that says the operation could not be completed because the item is locked? The first thing to do is look at the file(s) or folder(s) that are stuck. Do they have weird names? Remove any unusual characters (especially slashes), then try emptying the Trash again. If that doesn’t work, right-click on one of the stubborn files/folders and select “Get Info.” Is the “Locked” option checked? Uncheck it, close the Get Info window, and repeat this process for other locked items in the Trash. Try Option-clicking the “Empty” button now.

Third party applications

While applications from third party developers aren’t ideal for fixing OS X issues like this, they are a lot easier (and safer) than the next two techniques. Therefore, they’re worth a shot before moving on. Try downloading and installing the free Trash It! program. It just might be the answer to your prayers.

Repair disk & repair permissions

Sometimes files become corrupt and need some attention before they can be deleted. Insert your Mac OS X disc and boot to it by holding down the C key as your Mac turns on. When the disc has finished loading, go to “Disk Utility” under the Installer or Utilities menu (depending on your version of OS X). Click on your hard drive in the list to the left, then click the First Aid tab, and finally the “Repair Disk” button. If any errors are listed when it’s done, click “Repair Disk” again to make sure the error doesn’t come up a second time.

Next, click the “Repair Disk Permissions” button and let it scan the drive. This only needs to be done once. Repeat the “Repair Disk” and “Repair Disk Permissions” process for any external volumes or drives listed in Disk Utility as well. When finished, restart your Mac and try to force empty the Trash (as described above).

Terminal trickery

Now we’re getting into the ugly (but apparently necessary) stuff. I should warn you that executing the following command in Terminal could erase all of your data if you do not follow directions exactly. Backing up before proceeding is always a good idea, just in case. Launch Terminal, which is located in Applications > Utilities, and type the following command.

sudo rm -rf ~/.Trash/

This command temporarily takes advantage of the Root user (the “sudo” part) and deletes the data in your own user account’s Trash directory. Press Enter/Return to execute it. You will likely be prompted for your administrator password – type it and press Enter/Return again. Note that the cursor will not move and none of the characters you type will be shown. When the job is done, type “exit” (minus the quotes) and press Enter/Return before quitting Terminal.


Is your Trash empty now? I should hope so! If you’ve gone through all of the steps above with no success, you may be the victim of a peculiar case that cannot be solved with common techniques and tools. Feel free to describe the problems you’re having in detail in the comments below. Perhaps someone from the helpful Mac community might be able to assist you.

97 Comments Have Been Posted (Leave Your Response)

Francis Kulesza
March 4th, 2010, 6:44 PM

Still have a file (alias) (“‘QM,[?]Op|) with zero size and “unknown access”
Have not been able to get rid of it. — any clues??
File probably came from deleting a Time Machine Backup.
Snow Leopard 10.6.2

That sounds like a messy situation. As a general rule of thumb, never manually delete a Time Machine backup from Finder. It can only end in disaster. Have you tried renaming the file so it doesn’t contain any of those special characters?

I had stubborn trash files that wouldn’t empty. I was using “Secure Empty Trash,” and wasn’t sure that one of the force-trash emptiers would delete the files securely. So I went into the trash can and changed the filenames.

Like magic, the trash emptied securely!

I have an external back (Not configured as a time maching backup drive) FAT32 format from which I have deleted two directory folders. These folders were backed up from a PC that was long ago retired. The directories each contain three folders ‘my pictures’ ‘my documents’ ‘my music’ and are all empty…they will not empty from my MBP OS 10.5.8 trashbin. The resulting message says that I have insufficient permissions for some of these items. None of the steps listed above worked including using the sudo command in the terminal. Any thoughts?

problem solved. Relocated the files back to the external drive, then just hooked the drive up to a pc…delete, empty recycle bin…voila!

I have a file that’s 4KB in the trash, it won’t empty, normally or securely. Or with the terminal command.

It was a folder originally from my bootcamp partition, now it’s just a small file that ” sorta ” opens in terminal. When I say sorta I mean it doesn’t do much and terminal doesn’t seem to like it.

If I empty normally, it makes the sound of emptying, but everything but this file is deleted. When I secure empty trash I get the error ” the finder can’t complete the operation because some data in “care package” can’t be read or written. (Error code -36)

When I tried the terminal way, after typing “exit” it said process complete, but the fucking thing STILL didn’t delete.

Help appreciated.

Thank you so much!!!

My Time Machine deleted its oldest backups to make room for a new backup and now I have 7 Gb of files in the trash can that just will not allow themselves to be deleted. These files are from the Windows 7 NTFS partition on the Mac. I have tried all the Empty / Secure Empty options and Third party Trash can emptiers, have tried the Terminal command line suggestions (just wrecked my profile and had to restore my last backup)… I have been slowly removing files that I am able to remove to a folder and deleting them on another profile but there are still about 100,000 to go. Random files within the Trashcan when deleted cause the Mac to crash and there are stacks of those… At my wits end and I’m sure there is a way to do this.. Open to new suggestions Thanks johnT

Awesome! Force delete worked really well

i have 41,000,000+ items in my trash can…. tried the methods above with no luck, they are associated with an external usb, three folders two in greyed out text. Opening one folder releases a stream of other folders with what looks like individual files named from text taken from a block of text. reformat the usb?

I’m having the same issue as John T although there’s a heck of a lot more than just Time Machine files in my trash. I’ve been using Tinker Tool System 2 for years and, until recently, it always emptied trash fine. Have tried every solution on this page now. All still there.
Anyone have any insight?

I have run out of room on my hard drive and 1T external hd!!!


Similar issue with me.
On secure empty of the trash I get following Message “The operation can’t be completed because the item “Demos” is in use.” I have searched the trash and don’t have a “Demos” in my trash.
Any suggestions gratefully appreciated.

Thank you so much, I couldn’t empty my trash, and holding the Option and then pressing secure empty trash emptied it right away.

I have the EXACT same problem as Kyle. It was a Bootcamp folder as well. Have no idea what to do. HELP!

Thanks for the instructions, Fixed!

Worked for me a treat, 2.3 gig of trash cleaned out, thanks for taking time to put this into clear, easy to read and understand English. :)

My trash can says it has 8,988 files in it. When I click “empty trash” a progress bar comes up that says to delete 17,009 files. When it reaches this number, it freezes to a grayed screen displaying the message” You need to restart the computer. Hold down power button fore several seconds or press the restart button.” So i just restart my computer, and can never delete my trash.


I have evidently done the absolute no-no of attempting to clear space on my external by manually deleting old back ups in finder. I’ve begun to try and put the back ups back where they were in order to delete them properly but I don’t know if this is going to do anything because now the space on the external is down to about 10GB with something like 3,000,000 items that were in the trash. What should I do? Even if this copy works, I really don’t know how to properly do this. I’m also quite nervous to restart my machine because I am now without actual back-ups! Ahh… this has become such a disaster, it seems like you have the solution.. PLEASE HELP!! Thanks!!

did the sudo and worked like a charm! thank you!

Thanks worked first time and saved me a real hassle

was deleting old Time Machine back up files from hard drive via Finder (never gonna do that again!) We had no problem doing this with quite a few TM back up files, yesterday. This morning I resumed the deletion of files to make room on the external HD, but the trash can won’t empty. Error code 8003

I have tried opening the Trash, right click and select “put back” but I get the following error message:

“The operation can’t be completed because backup items can’t be modified.”

There are two files in my Trash:

both are folders located at: /Volumes/MAC TERRA/.Trashes/503

I have tried using Trash It, but no luck.

Also tried to use disk utility – first aid but I’m not sure what to do here. I selected our external HD (MAC TERRA) and clicked on verify disk and after it ran, got message that drive appears to be okay. Also, noticed that while I am running the disk utility for the ext HD (MAC TERRA) the trash can on the desktop bar appears empty!

However, If I run disk utility on our Mac HD the trash can shows up full again? Also, when I run “verify disk permissions” on our Mac HD (option greyed out for ext HD) I do get a long list of permissions that show up, but I’m afraid to click “repair permissions” because this is a hackintosh and I have no idea if permissions are set up different for a hackintosh versus a regular mac?

I have also tried the “Secure Empty Trash” idea, but doesn’t work. Same error message :(

Any advice on what to do would be appreciated! Also, need it in “for dummies” terms since I am not a MAC whiz ;)


I think you’re screwed. I’ve had this bite me more than once. Apple dropped the ball on this one (you shouldn’t be allowed to trash files/folders if it is going to hose your operating system’s performance.

I’ve never found a way to get around this other than reformatting the drive. YOU’LL LOSE EVERYTHING ON THE DRIVE when you do.

I made the mistake of moving Time Machine’s target drive to my external data drive when my original Time Machine drive croaked. My offsite backup provider has decided they won’t allow an external drive to have any time machine files on it (even if they are excluded from their backup).

Major pain in the behind. Macs are becoming more like MS Windows everyday. I’m growing tired of it. :(

If you’re brave, you can look at
and at least get the other files out of your trash. But I eventually think you’ll have to reformat that Time Machine drive to eliminate the empty trash errors.

The option key did it for me thanks!

I tried almost all of these, even Trash IT! didn’t work. (I’d stupidly moved some Time Machine backups to the Trash from an external HD).
I just ejected the external drive and the trash emptied immediately. was actually a simple fix, and of course I’ll use Time Machine to delete backups going forward. Lesson learned. but thanks for your help.

I have two items that wont delete out of my trash. Their called “±Ê!␀␀␀.␀␀␀” and “y¨â€`©ò.ÂÐv”.
tried force emptying, terminal trickery, unlocking, and renaming, with no luck. :/

Best working solution given by Dez Miklos at the following link–works very well–takes a few minutes but fixes the problem.

i have a problem with mine too i have a file named S-1-5-21-1609233875-2402336179-1839426862-1000 and i can’t deleted i tried everything above but it won’t work when i tried secure emptying the trash it says error code-36 i have tried reinstalling my computer but it won’t go away at all can you help me plz and great thanks

Ive done the terminal thing exactly as it said and now it is working but all my photos are gone. Is there any possibility that I could retrieve them?

Thanks !!!!! this was very helpful:-)

Try the free application called “Trash It”. Worked like a charm for me.

I used “Trash It” and work like a charm on my 2012 MackBook Pro :) I had stubborn files that did not want to go from an external jump drive.

Very useful. Thank you very much.

I have an easy way of getting files off of your hard drive.
1. buy a very large external harddrive
2. put all the files you do not want onto this hard drive.
3. go to switzerland
4. throw said hard drive off of mountain

woks like a charm for me :)

When I try and use the sudo command, when asked for my password it will not let me type it in?

Anyone know how to get around this?

Trash It! was the ONLY thing that cleared my trash (I tried everything else listed). Thanks!

2 Things:

1) Thank you! Your helpful info for emptying trash thru terminal worked! Phew.

2) Around the same time I noticed trash wouldn’t empty (a week or so), I have not been able to upload pix to internet. I can upload pix from my camera to my Mac, but not from there to emails/fb without Safari continuously quitting….Does anyone know how to resolve this?

Thank you.

Thanks, the sudo rm -rf ~/.Trash/ did it for me.

mine says .Trash file cannot be deleted while in use any idea how to fix this?

Thanks. Should have started with the terminal instructions to empty the ~/.Trash/ directory

\rm -rf ~/.Trash/*

(Familiar with unix .. but wasn’t aware that trash info was kept under .Trash folder in user’s home directory.)

Hi all –

I’ve downloaded Trash It! 5.0 and I can’t tell if it’s doing anything. It uses very megs when I check it in Activity Finder and when I right click the program I always get the “Application Not Responding” message. Might it still be doing its work though? I’ll get a box after a few minutes that says “Thanks for using Trash It! Allow it a few moments to reset.” What does that mean?

When I try to “Empty Trash” it says “Items to delete” and counts up to about 1,650 and the blue status bar seems to move as if it will take days to delete all of these files

Mwahahahaha! sudo rm -rf ~/.Trash/ did the trick! Many thanks!

Its tricky to trash stubborn files but I depend on Stellar Mac Wipe, a third party tool which can select single files (even locked files) and delete them permanently.

worked like magic – the force delete. Thanks a lot man.

Thanks so much !

well after a good solid morning of trying to get rid of some unwanted video on the desktop I tried all and everything with no success among them them the terminal cryptic manoeuvers to no avail finally read just now on this page about the “trash it” application for mac MIRACLE IT DOWNLOADED in a second and the bloody video went in the delightfull lookng trash can its superbe and most simple

Thank you, Thank you,Thank you! The option button+empty trash save my day. :)))

Thanks. Very useful. Was able to clear the trash using the command line.

Trash It worked like a charm. Got rid of 16 Time Machine folders from my old MacBook that I had deleted from an external drive. Highly recommended!

sweet! ‘terminal trickery’ solved my problem instantly after weeks of trouble-shooting.

thanks a heap ton!

Well I made the fatal mistake of deleting files from my time machine. But worse was yet to come. I typed the terminal command you have listed above and behold I have lost my home folder thereby loosing two years of work. Have spent the last three hours on the phone to apple. The only hope I have is that I can copy an old backup file back to the “my book” and hopefully restore from there. So BEWARE before using the terminal command given

Thank you! The option button+empty trash did the trick on my old Powerbook G4.

I can’t access my finder or trash can. First the finder was bouncing up and down and a flashing screen appeared with the option to choose by restore windows or don’t restore windows. Now the bouncing and flashing have stopped, but I can’t access finder or trash, and if I restart my computer, I know the bouncing and flashing will start again.

In the terminal I first tried
sudo find / -name “.DS_Store” -depth -exec rm {} \;
But it said not a directory twice, and then stopped.

Then I tried your solution
sudo rm -rf ~/.Trash/
But nothing happens when I type in my password.

I don’t know how, but my Mac works now. I tried everything, and then it almost worked, so I took a shot and restarted my computer and then it worked! I lost everything on the desktop, though. I did a backup, but I’m afraid to use those things^^ When I restarted it was almost like when I started the computer for the first time, so I had to install some things again, but programs like Logic and Office was still there!


Thank you! After waiting for over 42,000 items to empty from my trash over a period of days (literally), your TrashIt! suggestion had the problem solved in 10 minutes. My computer, with is newly rediscovered empty memory, is so much better now.

Went through all these steps and also tried starting the iMac in safe mode (this got the trash empty) but I still kept getting the annoying Finder error. This trick worked though:

Thank you . Holding the option key and emtying the trash worked for me. Thanks so much

Tried to dump some old Time Machine backups and the trash wouldn’t empty (error code -8003). I couldn’t even put the files back on to my backup drive. I tried everything to no avail… UNTIL I downloaded TRASH IT! And it worked! Thank you, thank you for the excellent advice!

Emptying the Trash cannot be completed because “good” is locked. To Empty everything in the trash, including locked items,press the Option key while selecting Empty Trash

please help me…….

If the files once belonged to an external HD and they wouldn’t delete properly, try verifying and repairing your HD in Disk Utility.
Worked for me.

Change the file name juste change a letter !!!
It worked for me when nothing else did.


THANK YOU!!!..omg i was trying to look for an answer on how to delete this!! totally worked..thanks again ^____^v

Larraine M. Duez
May 25th, 2013, 1:43 PM

Thank you Gina…tried the link you sent and after two years and 35,000 accumulated trash files…it emptied using the free “Trash It” app….Thank you!!!

Larraine M. Duez
May 25th, 2013, 1:45 PM

Sorry, I didn’t mean sent…but rather the link you posted…anyone not having success..needs to try works!

The Option key worked for me Thank You!!! Had tried everything!!! Going to add your site to my bookmark bar right now ;)

If you trash a file which was transferred over Skype and try to empty the trash, mac os will not allow it. Closing the Skype application was my solution to the problem.

Option Key. Beauty!

Thanks so much for this.

I had hotspot shield, but got rid of it, at least I thought. I used App Delete to try and remove the rest of what was left. I also used ‘Trash it’. Now in my trash I have two App Delete tunnelblic items 09-31-21 and 18-41-39-153. I have tried everything that I know (which is not much) including ‘terminal trickery’, but cannot remove them.
I will be thankful for any ideas.

The first solution worked! Thanks a million!

Thank you so much. I had rendered out like a 7Kx4x or something like that, attempted to save a tiff image, and it corrupted into a 206 byte file, every time. I tried to delete it but it said it was open in another program. However there were absolutely NO programs open. I did the secure empty trash thing, and that worked. Thanks so much!

Worked but now when I go to move something to the trash I get a pop up window warning me that this file will be deleted immediately and that I can’t undo this action.
Any ideas?

My trash would not empty code 8003. As someone above suggested I created a folder on desk top and dragged the trash contents in there. I tried to delete that folder but got the same message so back to sqare one. On the extra desk top folder: I clicked on view and arranged by type.
Than the labour began. First I deleted the obvious single files into the trash and secure emptied.
That worked. Than after more trials I dragged and secured empty trash with files ending in dmg it worked but only one by one.
It seems that the system can not handle folders that have several folders or HTML documents so I had to delete those one by one into the trash and it could secure empty the now empty folder plus what was in it in one swoop with item count down.
I wanted to get rid of the Olympus software, that darn thing had 607 files in many sub folders, I needed to delete each file in several folders and it secure emptied. I could not get rid of the viewer so I put it back in Application.
I could not get quick books nor quicken off.
You probably think I am crazy. Just tried to get excess cleaned off since ESet Cyber Security caught
about 5 undesirable nasties with one Trojan on my wonderful I Mac.
I am glad if any one can do it easier than what I went through with this trash emptying. Non Mac, third party items are a pain to get rid of.
This program called Things gave me one reason why it would not delete “spot light is in use” I went to force quit but the spot light was not an option
So I am thinking it attached itself plus multiplied itself 3 times over with 600+ files in each folder and I never used the stupid thing. I am going to find a way to get rid of that windows type leech.
Maybe you can make sense of what I am trying to get across If not I apologize I am exhausted from this stupid ordeal. Best wishes

I’m having difficulty emptying a folder called “LOL 8.33.03 PM” from my trash. When I normally empty, the noise happens, but the one folder won’t go. When I securely empty trash, it comes up with a message saying “You can’t copy the item “” because its name is too long or includes characters that are invalid on the destination volume.” and won’t empty. I’ve been told I must re-image my MacBook Pro but I don’t want to lose my 300GB on my 1TB EHD by backing up with Time Machine. Please Help!

This one worked for me. Click on the Trash icon in the Dock to open it in Finder. Hold down the Option key while clicking the “Empty” button. Still nothing? How about going to the Finder menu and selecting “Secure Empty Trash”?

Thank you SO much! The Terminal suggestion emptied my trash!
This was REALLY helpful!

The Terminal Trickery command line worked perfectly for me. Those stubborn files have been bugging me for months! Thanks. :)

Carmine DeFrancesco
November 13th, 2013, 8:06 PM

Wow! I have never had any luck with on-line advice. But I held down the option key and clicked empty and viola! empty bin. Thanks

This is ridiculous APPLE. I am so pissed off as I might lost $1000 of work – because I need to free space of a whole presentation / video I just did, and the damn trash will not empty.

This should be a difficult thing.

“Trash” emptying solved by using “Secure Empty Trash” in FINDER and holding down OPTION key.

Thank you guys so much! Helped me super quick!

Common errors upon attempting to empty trash include:

“ the operation cannot be completed because the file is locked” or ” the
operation cannot be completed because the item is in use”

1..drag the file from the trash to your desktop
2..launch the terminal and type the following into the terminal window
leaving a space after the f

3.. cd ~/.Trash && sudo rm -rf

4..drag the file from your desktop to the terminal and then press enter
5..enter your password when promped and press enter

THANK YOU!!!!! x 100000000000000000

Install Ubuntu instead of MAC

For those of you who manually deleted time-machine from an external. Try this. it worked for me after all other fails.

This technique uses a hidden feature of Mac OS X to force the Trash to empty. Perform the following steps in the order specified:

1. Press and hold the mouse button on the Trash icon in the Dock. ….The context menu for Trash will display.
2. Press and hold the Shift-Option keys together
3. (still holding keys) Select Empty Trash from the context menu for Trash.
Release the keys pressed and held in step 2.

I tried to dump something from time machine on my external drive. When i open the drive, the item is in the trash. It is a package of zero bytes, and when i try to delete it, it says, “The operation cannot be completed because item …. is in use”. How can something be in use when there are 0 bytes? Thanks for your time

You rock! Worked on the first suggestion.

Excellent site! Had a prob for days now, this site clearly instructed me on how to sort it.

I simply downloaded CCleaner for Mac from the Piriform website. That took care of the problem so quick and easy!

I used sudo in Terminal and successfully deleted my trash, but now my trash and secure trash buttons are grayed out. If I put something in trash, it is deleted permanently. I’ve just found the last page of your site and see that I was supposed to type exit before I closed the terminal, which I did not do. Pilot error. How do I get the buttons back.

the first step work.
thank you thank you
very helpful :)

I have wasted now 2 days trying to find a solution to emptying my trash in Yosemite. The error message I get: The operation can’t be completed because an unexpected error occurred (error code -8060).

I’m not the only one with this problem but have not yet found a solution. I tried terminal as mentioned above. When I got to the where I needed to enter my p/w, I’d type and nothing would happen. Once in dozens of tries, it did empty my trash, but as soon as I put another document in the trash the problem persisted. Forced empty has not worked for me. I did read somewhere that changing permissions might work, and I got a link to open the ‘get info’ window for trash. I can no longer find that site nor the link to open the info window for trash. I’m pulling my hair out!!!

I used the terminal rm -rf ~/.Trash/ command and lost everything on my desktop and iphoto!!!! Anybody have any suggestions on how to recover these files?

HELP! Ran the command to force delete trash and it seems almost all data and application data, settings, etc are now gone, all files on desktop, most files in pictures, documents, etc. In a bit of a panic. How do I undo??

Wow, just wow! I have been restarting my computer so many times in an effort to delete this file! I held down “option” and clicked “empty” in the trash and ‘boom!’ it was gone! Thank you so much! I can’t believe how easy it was! :D

August 16th, 2015, 6:30 AM

Try “Long Path Tool ” is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors.

Been three days trying to delete my trash and nothing seemed to work until I read MacYourself, thank you.

Have Something To Say? Join The Discussion!

  (required; will be kept private)