So since Macs are given such a paltry amount of RAM (disc space?), I have been trying to maintain my Mac Studio 1 TB to keep around 20% free. I had come across a bunch of folders in my Shared folder that had “Relocated items”, which included some CCC folders etc. I figured since it was “relocated” that something else had taken its place and I could delete them. Well, I can put them in the trash, but they remain “in use” with names like var, cache, configuration, Extensible SSO etc. I tried restarting, Shift Key start, Disk Utility (from Rescue Drive and not) and am still not able to get rid of them. Do I need to reinstall the Mac OS, and will that help at all? I am afraid to use terminal on it as they are “in use” and that persists through restarts, so something is using them. I have used OnyX which restarted right away, but they remain.
“Relocated Items” is confusing. I think the way it works is…
Let’s say you (or some application) has made a local change to a file in /etc, such as a configuration file. You install a macOS update. That update replaces the local modified file with the macOS standard version. The local versions are the “Relocated Items”.
Often you don’t actually need to save the Relocated Items. For example, if macOS Golden Gate has a change to a configuration file, the Tahoe version will be put in “relocated items”, even though you didn’t make the change. And there are some bugs where it is macOS that is making the change after boot, so it will put the previous version in Relocated Items on every minor update – there’s no way to stop that. The timezone file has this problem.
There’s another bug. Some files can’t be changed with System Integrity Protection (SIP) on. The problem is that SIP will prevent you from deleting the file from Relocated Items, even though the full path to Relocated Items is not the original location that should be protected. The only way to delete these files from Relocated Items is to either turn off SIP, or boot from another Startup drive.
hi,
When migrating to an M2 I had a bunch of CCC folders as well in this matter; not sure how I eventually got rid of them (several weeks/ months accumulation) as it was 2 yrs ago.
However current pile in ‘Shared’ were successfully deleted with Opt-Cmd Delete.
FWIW, dave
So I got to the point of manually opening the trash folder and going to specific files and Right-clicking to “Delete Immediately” There seems to be some system protection that protects folders within folders. It will tell you there may be “locked files” in the accompanying folder, but expand it and you may be able to delete the files. Opening up the folders, I was able to delete files one after another until I got to a few remaining that will not delete with a -8062 error.
I reinstalled the OS, I turned off protection services, and I booted from a clone of the startup drive. I still cannot delete these remaining files.
SIP is probably preventing those files from being deleted. You should be able to remove them if you boot into Recovery Mode, but that’s a bit trickier in the Terminal.
If those files aren’t using much space, you could just “shove them somewhere the sun don’t shine”
And of course, I mean a place like /tmp:
- Choose “Go to folder” from the Finder’s Go menu
- Type “/tmp” and press Return
- Drag the top-level folder from the Trash over to the /tmp folder
If Finder moves the folder instead of copying it, you’ll never have to see it again.
Didn’t get to try this suggestion out but got on the phone with Apple Support. They escalated it to a Senior and then I got disconnected and they called me back to advance to another Senior Support person. We think that some version of CCC I used for a backup put some system items from the Relocated Items folder in one of the folders in “CCC Safety Net” folder. There were folders in there named Relocated Items (followed by a number). I was able to delete all the folders except some of these that contained some system files. Nothing in Get Info showed that they were locked. I did try to change the top folder’s permissions to be Read and Write by me and then applied to enclosing folders, but that didn’t work. (I thought of that one and thought I was being very clever)
We ended up booting into Recovery mode, ran Disk Utility which did not seem to fix anything, then went into Terminal. From there we moved (cd) into the Trash folder and executed
rm -rf *
which deleted the offending files. I have booted back into my computer and all seems well. I will pay more attention to the items in the Shared folder in the future.
Thanks for all the ideas and help. Though I do not consider myself a power user (to my wife, I am) the more peripherals you have and programs you run places you in situations that a simple user typically does not have.
Thanks TidBITS
That gives me chills anytime I see it. I’m sure it was appropriate for the situation, and you were guided by Apple Support, and you both turned separate keys labeled “I swear upon a stack of significant religious tomes that my current directory is ~/.Trash, and I have verified that more than once.” before pressing return. ![]()
A safer form for that command would be to explicitly name the directory and use the confirmation option (which overrides the -f option):
rm -ir ~/.Trash
Edit: fixed path name.
I agree. I did verify a few times, with lst, where I was and I have multiple backups. But good to know.
