If you DFU reset the device and don't restore from any icloud backup, it should no longer have any enrollment profile (since ASM doesn't have the device linked to your MDM any more). See https://support.apple.com/guide/security/boot-process-for-iphone-and-ipad-devices-secb3000f149/web for more information.
... View more