First, show the profiles I have.
sudo profiles show -type enrollment
Second,remove all the profiles
sudo profiles remove -all
An error occurs:
profiles: There are profiles installed that marked non-removable
I found an answer here. https://graffino.com/til/UmkCdmEx7v-remove-a-non-removable-mdm-profile-from-macos-without-a-complete-wipe
cd /var/db/ConfigurationProfiles
rm -rf *
mkdir Settings
touch Settings/.profilesAreInstalled