Cannot get rid of MDM/DEP after restoring an iCloud backup
So I have bought my device from my employer. It was managed using MDM with DEP. The company has released the MDM but for some reason the device still appears as supervised and managed by my organization.
I have erased and deleted all data, factory reset and everything for several times but the supervision persists once i recover from iCloud backup.
With what I understand, the backup contains that information that returns the device to be supervised. How can I get rid of it without giving up on the backup? I'd like to keep most of my backup intact.