Catalina Update Relocated Items - Can't Delete or Empty Trash

I just completed the Catalina update which created a shortcut on my desktop called "Relocated Items." Inside is a PDF file that states these relocated files could not be handled by the update and were moved to this folder. I moved the folder to trash, and tried to empty trash, but some of the files cannot be deleted. I get a series of error messages (screenshots attached). Thing of it is, there is no "Put Back" option in right click either, so I now have files in the trash I can't do anything with. I tried booting in safe mode to empty trash but got the same errors.

MacBook Air

Posted on Oct 7, 2019 9:18 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 8, 2019 11:46 AM

Hi,


A couple of comments here:


First, prior to seeing faikbey's comment added above, I filed an issue on the XQuartz GitHub site here:


https://github.com/XQuartz/XQuartz/issues/1


as this appears to be an XQuartz related issue, for those that have installed it. Apple stopped including X11 in OS X 10.5, and XQuartz is the vehicle for its use since then for those that need that functionality.


There should ideally be an uninstall capability in XQuartz, but I was unable to locate one, other than this GitHub Gist here with a manual script:


https://gist.github.com/pwnsdx/d127873e24cef159d4d603accaf37ee4#file-gistfile1-txt


However, that uninstall would presumably only work on this issue if you knew about this problem prior to upgrading to Catalina. That is, you would uninstall XQuartz first, upgrade to Catalina, and then reinstall XQuartz.


Once you have upgraded to Catalina, with XQuartz in place, you get this underlying relocated items issue.


I did use the above gist scripts to uninstall XQuartz post Catalina upgrade, but that did not help in resolving the relocated files issue.



Second, one additional point to add to faikbey's comment, is that the user volumes are not mounted by default in Catalina in Recovery Mode, even in /Volumes. Thus, before going into the Terminal to do what faikbey suggests, you appear to need to go into the Disk Utility application and mount the Macintosh HD volumes in the left hand frame, to make them accessible from the Terminal. Once I did this, I could then navigate to my .Trash folder in my user account tree and delete the files.


After a reboot from Recovery Mode, all is well, at least in terms of the files in Trash being gone. Now, I need to reinstall XQuartz, as I need it for one of my applications, so we will see how that goes.


Hopefully, the XQuartz devs will note the issue and offer some better options for dealing with this, or provide other clarifications as apropos.


Similar questions

30 replies
Question marked as Top-ranking reply

Oct 8, 2019 11:46 AM in response to faikbey

Hi,


A couple of comments here:


First, prior to seeing faikbey's comment added above, I filed an issue on the XQuartz GitHub site here:


https://github.com/XQuartz/XQuartz/issues/1


as this appears to be an XQuartz related issue, for those that have installed it. Apple stopped including X11 in OS X 10.5, and XQuartz is the vehicle for its use since then for those that need that functionality.


There should ideally be an uninstall capability in XQuartz, but I was unable to locate one, other than this GitHub Gist here with a manual script:


https://gist.github.com/pwnsdx/d127873e24cef159d4d603accaf37ee4#file-gistfile1-txt


However, that uninstall would presumably only work on this issue if you knew about this problem prior to upgrading to Catalina. That is, you would uninstall XQuartz first, upgrade to Catalina, and then reinstall XQuartz.


Once you have upgraded to Catalina, with XQuartz in place, you get this underlying relocated items issue.


I did use the above gist scripts to uninstall XQuartz post Catalina upgrade, but that did not help in resolving the relocated files issue.



Second, one additional point to add to faikbey's comment, is that the user volumes are not mounted by default in Catalina in Recovery Mode, even in /Volumes. Thus, before going into the Terminal to do what faikbey suggests, you appear to need to go into the Disk Utility application and mount the Macintosh HD volumes in the left hand frame, to make them accessible from the Terminal. Once I did this, I could then navigate to my .Trash folder in my user account tree and delete the files.


After a reboot from Recovery Mode, all is well, at least in terms of the files in Trash being gone. Now, I need to reinstall XQuartz, as I need it for one of my applications, so we will see how that goes.


Hopefully, the XQuartz devs will note the issue and offer some better options for dealing with this, or provide other clarifications as apropos.


Nov 9, 2019 10:54 AM in response to alanwsx

Thanks for this, @alanwsx. I tried a simpler approach based on your insight of using Recovery Mode and had success just doing this:


  1. Reboot and go to Cmd+R recovery mode
  2. Open Terminal
  3. Navigate to the Trash folder (e.g. cd /Volumes/Macintosh\ HD/Users/USERNAME_GOES_HERE/.Trash
  4. Delete everything manually by `rmdir -rf Relocated\ Items`. No sudo is required in Recovery Mode.
  5. If it succeeds (it did for me!), reboot to normal mode and you're done. If not, continue your instructions at Step 2.

Oct 8, 2019 3:44 PM in response to alanwsx

alanwsx wrote:

1. So here is what I did for removing that folder:

Reboot and go to Cmd+R recovery mode
2. disable SIP by `csrutil disable`
3. Reboot to normal mode and delete that folder, empty trash
4. Reboot and go to Cmd+R recovery mode
5. re-enable SIP by `csrutil enable`
6. Reboot to normal mode

Thank you! This worked 100%. And thanks to everyone else for insights into the cause and offering solutions.

Oct 8, 2019 8:40 AM in response to FerranPrincep

I had the same issue, here is how I fixed it:


Restarted using recovery mode (command-R)

From the top menu bar choose utilities and launch terminal

Type df to see all the mounted hard drives since recovery mode doesn't mount your hard drive to / but to /Volumes/Macintosh HD (or what have you).

Go to your mounted volume, in there /Volumes/Macintosh HD/Users/<username>/.Trash and do sudo rm -rf *

Check with ls to see if it worked, it should.

Close terminal and restart again, trash should be empty




Nov 14, 2019 6:39 AM in response to jpotisch

Thank you for the advice. For a reason I can't identify, I am unable to put my iMac in recovery mode. Any suggestion for solving this problem?


Instead of having to figure this out only for the sake of a deletion of a single file, it would be better for me, as well as for anyone else who is still stuck with this useless file in their trash if Apple came out with a faster and simpler solution.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Catalina Update Relocated Items - Can't Delete or Empty Trash

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