1

Is there any way to remove enterprise or all devices from enterprise in Android Management API ?

Please note: I am already aware about api to remove single device i.e. https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/delete

The Black Horse
  • 2,328
  • 1
  • 14
  • 21

3 Answers3

1

I assume you mean if there is a programable way to do this? If so, then I think presently this is not possible using only the AMAPI. Providers that use the EMM API have this option using the unenroll API call.

With the AMAPI, you may still be able to remove all devices by listing them first and then call delete for each entry in the list. Be careful for the case where an enterprise contains hundreds or thousands of devices. Limit the amount of API calls over short periods of time. See Usage Limits.

petarov
  • 131
  • 2
  • 12
0

To delete an enterprise.

  1. Go to Managed Play Store
  2. Go to Admin Settings.
  3. Delete Organization.

To delete all the devices from the enterprise.

  1. You have to know all the devices associated with your enterprise by calling Devices.list.

  2. Execute Devices.delete for each device

Deyzel
  • 186
  • 5
0

"You could get the list of enterprise Android devices from devices.list and call devices.delete on each of them. "