csrutil disable
Restart computer
In the terminal, type
sudo open /Applications/TextEdit.app /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist
change
<key>com.apple.ManagedClient.enroll</key>
<true/>
to
<key>com.apple.ManagedClient.enroll</key>
<false/>
So that the changes take effect
My journey:
(If you run into
rm: /var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord: No such file or directory
that's fine. It just means the thing you were supposed to remove doesn't exist. Continue with the commands.)No issues.
Note: my previous issues with the sudo rm commands was that the sudo command is not found. That's usually because you're running sudo in recovery mode. Since I ran sudo in normal mode and I have an account that I knew the password to, these steps worked. Hope this helps!