Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bo-waleed

macrumors 6502a
Original poster
Oct 15, 2009
606
20
It contains a security folder that have some items I don't know what are they for.
 

bo-waleed

macrumors 6502a
Original poster
Oct 15, 2009
606
20
Ok, Thanks.

It concerned me because there is a swapfile item and I think this was an important file that you don't have to touch it before in Mojava.
 

chrfr

macrumors G5
Jul 11, 2009
13,707
7,278
It contains a security folder that have some items I don't know what are they for.
There can be files of importance in there, you should definitely look. Any files that were at the main level of the disk will have been moved into that folder.
 

DeltaMac

macrumors G5
Jul 30, 2003
13,757
4,583
Delaware
That folder is just a link to the actual files, so deleting the folder only affects what is displayed on the desktop. The actual files remain in place (in /Users/Shared, I think)
 

bo-waleed

macrumors 6502a
Original poster
Oct 15, 2009
606
20
Now there is a file named x11 and it's only 8 bytes and each time i try to delete it it says ''this item is required for macos''.
I think this item is related to xquartz which i did unistall a long time ago.
Any idea how to force delete it ?

Edit: Forgot to mention that the x11 file is a shortcut and i can't find the original one.
 
Last edited:

bo-waleed

macrumors 6502a
Original poster
Oct 15, 2009
606
20
Whoah I can't even delete it using Terminal. I mean this method
  1. Press Cmd + Space to open Spotlight.
  2. Type Terminal and press Return to launch it.
  3. Type sudo rm -R and press the Space. This is the command to force-delete files.
  4. Go back to the Trash and drag the files you want to delete to the Terminal window.
  5. Press Return.
  6. Enter your Mac’s administrator password to authorize the command. This won’t show as you type it, which is a security feature.
  7. Press Return to confirm and run the command.
It says operation not permitted.

There is no aliases for the file and when I try to open the file it says ''The operation can’t be completed because the original item for “X11” can’t be found''.

Any suggestions ?
 

MacManiac76

macrumors 68000
Apr 21, 2007
1,875
715
Arizona
I was able to delete the Relocated Items in my Trash by disabling SIP, using "csrutil disable", in Recovery mode Terminal. Reboot into macOS, empty the Trash, then reboot into Recovery mode and enable SIP again if you wish.
 

bo-waleed

macrumors 6502a
Original poster
Oct 15, 2009
606
20
Thanks you saved me.
I did enable SIP again, Although I don't know what is it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.