---
title: "Erase the Android Device"
method: POST
path: "/google-emm/devices/{deviceId}/erase-device"
tags: ["Google EMM"]
---

# Erase the Android Device

`POST /google-emm/devices/{deviceId}/erase-device`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/google-emm/devices/{deviceId}/erase-device`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/google-emm/devices/:deviceId/erase-device/post.ts> (a function with typed inputs; its response is checked against the schema)

Removes the work profile and all policies from a personal/company-owned
Android 8.0+ device. Company owned devices will be relinquished for
personal use. Apps and data associated with the personal profile(s) are
preserved.

#### Sample Request

```
curl -X POST https://console.jumpcloud.com/api/v2/google-emm/devices/{deviceId}/erase-device \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}"
```

## Path parameters

- `deviceId` string, byte, required

## Request body

- object

## Response `200`

A successful response.

- JumpcloudGoogleEmmCommandResponse

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
