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
I dont get the pop up but I wanted to remove those files in /var/db anyway, and I could not do it. It says operation not permitted and errors. ls -al shows this:
drwxr-xr-x 4 root wheel 128 Aug 4 03:31 . drwxr-xr-x 114 root wheel 3648 Aug 16 01:24 .. drwxr-xr-x@ 9 root wheel 288 Aug 16 01:28 Settings