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.

This item will be deleted immediately. You can’t undo this action.

Hi Everyone,


I came here after searching for solution for hours and none helped.


Device: MacBook Air

OS: Catalina 10.15.6 (19G2021)


I have been facing this weird issue. All of a sudden, the recycle bin has stopped working and now I get this following message:


This item will be deleted immediately. You can’t undo this action.


Well, I opened terminal and applied this command:


mkdir ~/.Trash


returns the error msg: No such file or directory


Then applied command:


sudo rm -ri ~/.Trash


returns the error msg: No such file or directory


----------------------------------------------------------------------


Well, manually tried to create directory.


The name “.Trash” can’t be used because it’s reserved by the system.


However, no such folder exists.


Restarted mac, force quitted Finder.


Nothing works.


I got 2 user accounts. Trash is working fine in other user accounts on this mac.


----------------------------------------------------------------------


I have no idea what to do in this situation.


Tried to contact Apple Support, none helped.


I even updated macOS last night.


Please is there anyone who can help me solve this issue.


Waiting for kind replies.


Thanks.






MacBook

Posted on Aug 24, 2020 8:05 PM

Reply

Similar questions

10 replies

Aug 24, 2020 9:36 PM in response to techprame

Hey there! Hopefully this can help.


It sounds like the user permissions may need to be reset. Previous comments are accurate, if sudo rm-rf (Drag trash here) didn’t work, and the fact that it works fine in a different user, it may be user permissions.


Also said earlier the process has changed and I believe done using Terminal from recovery mode, (Start your Mac holding Command R, hit Utilities > Terminal), I believe it is, (From recovery mode now),

repairUserPermissions or resetUserPermissions, can’t recall right now, but each command is safe to use, one just might not be recognized....then select a user who’s permissions to reset


I do know the old way works too though, (Not through the old Disk Utility, but through the Home folder info),


Only difference is you may have to allow Terminal to be accessed by the whole system:


System Preferences > Security and Privacy > Privacy > Full Disk Access, add Terminal and put a check next to it,


Then open Finder > Go > Home, press Command I (i), reveal Sharing and Permissions by clicking the disclosure triangle,Hit the gear icon then “Apply to enclosed items”, then “OK”,


Once that box disappears you can open Terminal from Applications/Utilities and enter:


diskutil resetUserPermissions / `id -u`


Once that completes, restart and test. Hopefully that fixes it!


Otherwise it might be possible Finder Preferences aren’t working as expected, In Finder > Preferences, what do you see there in Advanced, or General, (wherever the options for Trash are nowadays). Gate Keeper may also be playing a role. Anyhow if resetting permissions doesn’t work let us know!

Aug 24, 2020 9:18 PM in response to techprame

techprame Said:

"This item will be deleted immediately. [...]All of a sudden, the recycle bin has stopped working and now I get this following message: [...]I have no idea what to do in this situation.[...]"

-------


Have you reinstalled the macOS?:

Though an issue pertaining to just one user, it might just fix it for all.


How To Reinstall the macOS:

1. First, Back up your Mac:

Create a Time Machine backup of your Mac, so that you can have something to restore your Mac from, should anything go wrong with the reinstall.


2. Then, Reinstall the macOS:

Nothing would be deleted. It's just that items that have become corrupted or deleted, would be replaced or reinstalled back to where they should be. Go Here: How to reinstall macOS from macOS Recovery - Apple Support

Aug 24, 2020 10:11 PM in response to techprame

Another way it may go in recovery is either:

resetHomePermissions, or

repairHomePermissions,


Forgive me, I can’t recall right now, but I do know, as said before, the old way does work still also.


That said, booting to safe mode and attempting to empty the trash is a good step, (Despite it working fine in another user).


Also a good place to find a culprit is in Login Items, (System Preferences > Users and Groups > Login Items),


All of these programs that are checked are opening every time you log in and could potentially be causing the troubles. I’d remove them (Highlight the hit the “-“), restart and test if all the previous steps did not work.


Here’s the article for safe boot/mode:


https://support.apple.com/en-gb/HT201262


Hope it works out!

Aug 24, 2020 8:23 PM in response to techprame

You might try the following:


Open the Terminal in the Utilities' folder and paste the following at the prompt:


    sudo rm -Rf ~/.Trash


Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.


If you have no success with this, then try:


Fix permissions on Trash folder


Select your Home folder and press COMMAND-I to open the Get Info window. Be sure you have "read & write" privileges in the Sharing & Permissions panel. Check under "General" panel to be sure it isn't locked. If that is correct, launch the Terminal in the Utilities folder, and at the prompt copy and paste this command:


mkdir ~/.Trash


Press RETURN. If you get a message that the folder already exists, copy & paste this command:


sudo chown $UID ~/ .Trash


Press RETURN. Enter your admin password (it will be invisible) Press RETURN again. Then copy and paste this command:


chmod u+rwx ~/.Trash


Press RETURN. Log out and back in, or restart.

Aug 25, 2020 9:41 PM in response to MrHoffman

Yup, I’m aware thanks. One of many to get lost in the ether recently. I do know the method from recovery mode is the way to go moving forward though, but from what I’ve seen, given the weird symptoms corrupted permissions can cause, it still works okay. Who knows what Big Sur will bring, curious to find out though.

Aug 25, 2020 9:54 PM in response to techprame

Another way to possibly fix this is by rebuilding the user account, it sounds tedious, but is fairly easy, of course I’d still recommend keeping a TM backup, etc.


—Log into another admin user.

—Delete your main user from System Preferences > Users and Groups.

—Be sure to select the option to “Keep a copy of the home folder”.

—Open Finder > Go > Computer > Macintosh > Users > Deleted Users, and remove “Deleted” from the username, then move back into Users folder.

—Re-create the user in Users and Groups, making sure to use the same username (Home folder name), and password. (And choose administrator if it was one).

—Create the user, when prompted select the option to “Use the existing folder”, done.

—Restart and login to your original user, I’ve had success with this method in the past with issues that are specific to just one user as well.


Note that you’ll probably have to re enter your Internet Account passwords just once to re authenticate. Cheers.

This item will be deleted immediately. You can’t undo this action.

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