This could help if you need to add already configured apple cumputer (DEP purchased) to Meraki or JAMF MDM management.
sudo rm /var/db/.AppleSetupDone
sudo rm -rf /var/db/ConfigurationProfiles/
sudo rm /Library/Keychains/apsd.keychain
after running these commands restart your computer and the default apple setup assistant will start. (no lost of personal data)