---
title: "Unenrolls device from Google EMM and deletes the Google account details."
method: DELETE
path: "/v2/devices/{deviceId}/google-accounts/"
tags: ["device_Device Enrollment in EMM"]
---

# Unenrolls device from Google EMM and deletes the Google account details.

`DELETE /v2/devices/{deviceId}/google-accounts/`

Unenrolls a device from Google EMM and deletes its stored Google account details.

Permanently removes the GoogleAccount record associated with the device, unenrolling it from Android Enterprise (Google EMM) management for that device.

**About Unenroll Device from Google EMM**
⚠️ Android only. This endpoint applies to devices enrolled in Android Enterprise through Google EMM (managed Google Play). Deleting the account record unenrolls the device from Google EMM and removes its stored Google account details, which affects the device's ability to install and manage EMM-distributed apps until it is re-enrolled.

**Common Use Cases**

Unenrolling a device from Google EMM before decommissioning or reassigning it

Clearing a corrupted or stale Google account record so the device can be re-enrolled cleanly

**Best Practices**

Confirm the device no longer needs EMM-managed app access before unenrolling, since this removes its Google account details entirely

Re-enrollment requires creating a new Google account record through POST /v2/devices/{deviceId}/google-accounts/ rather than restoring the deleted one

**Workflow**

Confirm the device's current EMM enrollment with GET /v2/devices/{deviceId}/google-accounts/

DELETE the Google account record to unenroll the device

Re-enroll with a new POST request if the device needs EMM access again later

## Path parameters

- `deviceId` string, uuid, required

## Response `200`

Successfully unenrolled and deleted the Google account details.

- object
  - `content` DeviceGoogleAccount
    - `tenant_id` string, uuid, required — The ID of the tenant associated with the Google account.
    - `google_user_id` string, required — The unique identifier for the Google user.
    - `device_id` string, uuid, required — The ID of the device associated with the Google account.
    - `google_device_id` string — The unique identifier for the Google device.
    - `account_identifier` string — An identifier for the account.
    - `account_type` integer, required — The type of the Google account.
    - `google_authentication_token` string — The authentication token for the Google account.
    - `created_at` string, date-time — The timestamp when the Google account was created.
    - `updated_at` string, date-time — The timestamp when the Google account was last updated.

## Other responses

- `401` — Unauthorized access.
- `404` — Device not found for the provided deviceId.
- `500` — Internal server error occurred while processing the request.

---

[API](https://skmtc.net/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.net/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esper/esper-api-reference/versions/e1f64cbb488e/schema)
