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

DeltaMac

macrumors G5
Jul 30, 2003
13,757
4,583
Delaware
And, it is not enough to just enable the root user.
You have to log in to that root account.
(And I agree - you also need to have SIP disabled for certain kinds of files, which would include those found at the root of the volume)
 

Killerbob

macrumors 68000
Original poster
Jan 25, 2008
1,908
654
I can see it's been asked and answered, but just for good measure:

1) Restart into recovery mode -> terminal -> "csrutil disable"
2) Restart normally -> terminal -> mount drive for read and write -> "sudo mount -uw /"
3) Delete folder -> terminal -> "sudo rm -rf /your\ folder\"
4) Restart into recovery mode -> terminal -> "csrutil enable"
 
  • Like
Reactions: CJ Dorschel

Iluvatar1981

macrumors newbie
Sep 13, 2019
18
7
Just try to avoid this specific command (sudo rm -rf) from the command line if possible.
It is a very powerful command and if you do a mistake it is irreversible.
Read about what it can do. Terminal > man rm
In my opinion it is better to enable the "root' user, do the job and disable it if you are new user.
It is an alternative better than running root commands using Terminal. Especially if there is no backup.
Just think about it! :)
 
  • Like
Reactions: CJ Dorschel

Taz Mangus

macrumors 604
Mar 10, 2011
7,815
3,504
My suggestion would be once SIP is disabled and the OS Volume is mounted RW, enable root user, login as root user and drag the folder to the trash and empty the trash. Safer than using rm -rf from the Terminal.
 
  • Like
Reactions: CJ Dorschel
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.