Required.Resource nameof the Device in format:devices/{deviceId}/deviceUsers/{device_user_id}, where deviceId is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.
Request body
The request body contains data with the following structure:
JSON representation
{"customer":string,"removeResetLock":boolean}
Fields
customer
string
Optional.Resource nameof the customer. If you're using this API for your own organization, usecustomers/my_customerIf you're using this API to manage another organization, usecustomers/{customerId}, where customerId is the customer to whom the device belongs.
removeResetLock
boolean
Optional. Specifies if a user is able to factory reset a device after a Device Wipe. On iOS, this is called "Activation Lock", while on Android, this is known as "Factory Reset Protection". If true, this protection will be removed from the device, so that a user can successfully factory reset. If false, the setting is untouched on the device.
Response body
If successful, the response body contains an instance ofOperation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis API endpoint, \u003ccode\u003ePOST https://cloudidentity.googleapis.com/v1beta1/{name=devices/*}:wipe\u003c/code\u003e, wipes all data from the specified device.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter is required in the URL, specifying the device's resource name in the format \u003ccode\u003edevices/{deviceId}/deviceUsers/{device_user_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body allows specifying the \u003ccode\u003ecustomer\u003c/code\u003e (either \u003ccode\u003ecustomers/my_customer\u003c/code\u003e for the user's own organization or \u003ccode\u003ecustomers/{customerId}\u003c/code\u003e for managing another organization's device).\u003c/p\u003e\n"],["\u003cp\u003eThe request body also allows optionally allowing users to factory reset the wiped device by setting the \u003ccode\u003eremoveResetLock\u003c/code\u003e property to \u003ccode\u003etrue\u003c/code\u003e, otherwise this protection is not modified.\u003c/p\u003e\n"],["\u003cp\u003eProper authorization is needed, requiring either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-identity.devices\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-identity\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: devices.wipe\n\nWipes all data on the specified device.\n\n### HTTP request\n\n`POST https://cloudidentity.googleapis.com/v1beta1/{name=devices/*}:wipe`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/identity/docs/reference/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-identity.devices`\n- `https://www.googleapis.com/auth/cloud-identity`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]