The organization can unenroll from Android Enterprise Management by deleting the Android Enterprise Subscription from ZCC.
You can also remotely remove the work profile from devices or factory reset a work-managed device by initiating the Unenroll quick task. For more information on this quick task, see Unenrolling Devices.