A Device management plan is required to use the device management feature. If you have 50 or fewer IDs, the Device management plan is also free. To request a trial or free use, contact us via Ask a support representative directly in the chat.
Overview
Bulk delete on the Devices screen deletes up to 50 devices at a time. Use the Public API to delete more devices at once. You can also find devices by a condition, such as the user’s email address, and delete them. You use the following two APIs.Deleting an MDM integration workspace does not delete the devices imported from that workspace. They remain in the device list.
Before you begin
- Create an API key in Settings > API Keys. For the steps, see Generating an API Key.
- Check the Organization ID in Settings > API Keys. For the steps, see Finding your Organization ID.
- Before you delete devices, export the device list as a CSV file and keep it as a backup. For the steps, see Device Export.
Step 1. Collect the IDs of the devices to delete
Use Search devices for an organization to search for the devices to delete. The following example searches for devices whose user’s email address (people.primaryEmail) contains “@example.com”.
items[].idin the response is the device ID.- If
meta.nextCursorin the response has a value, more results remain. Add&cursor=<value of nextCursor>to the URL and send the same request again. Replace+with%2B,/with%2F, and=with%3Din the value. Repeat untilmeta.nextCursorisnull. - Compare the collected IDs with the exported CSV file. Make sure that no device that must be kept is included.
Step 2. Delete the devices at once
Use Delete multiple devices of an organization to delete the devices with the collected IDs. Specify the IDs of the devices to delete indeviceIds.
- If even one ID does not exist, no device is deleted and the request returns an error. IDs of devices that are already deleted and duplicate IDs are treated the same way.

