Method: enterprises.devices.delete

Deletes a device. This operation wipes the device.

HTTP request

DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

Query parameters

Parameters
wipeDataFlags

enum (WipeDataFlag)

Optional flags that control the device wiping behavior.

Request body

The request body must be empty.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidmanagement

For more information, see the OAuth 2.0 Overview.

WipeDataFlag

Flags used to control data wiping behavior when a device is deleted. By default all user data and factory reset protection data is wiped.

Enums
WIPE_DATA_FLAG_UNSPECIFIED This value is ignored.
PRESERVE_RESET_PROTECTION_DATA Preserve the factory reset protection data on the device.
WIPE_EXTERNAL_STORAGE Additionally wipe the device's external storage (such as SD cards).

Try it!