Skip to main content
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

  1. Create an API key in Settings > API Keys. For the steps, see Generating an API Key.
  2. Check the Organization ID in Settings > API Keys. For the steps, see Finding your Organization ID.
  3. Before you delete devices, export the device list as a CSV file and keep it as a backup. For the steps, see Device Export.
For how to authenticate API requests, see Authentication.

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[].id in the response is the device ID.
  • If meta.nextCursor in 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 %3D in the value. Repeat until meta.nextCursor is null.
  • 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 in deviceIds.
Deleting a device also deletes its usage history, and you cannot undo it.
You can specify up to 100 IDs in one request. If you have more than 100 IDs, split them into groups of 100 and send a request for each group. For the limits on API calls, see IT Management API rate limits.
  • 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.

Step 3. Check the result

On the Devices screen, make sure that the deleted devices no longer appear in the list. Deletions made with the API are recorded in the audit log.
Last modified on November 13, 2026