# Disenroll non-GMS Android device

> **Required Permission:** `mdm.aosp.device.remove` Creates a DISENROLL command; marks device as pending disenroll only when command push is queued successfully. Calling this again for a pending disenroll device reuses an active pending DISENROLL command or retries when the previous command has expired. Optional query: wipeDataFlags, wipeReasonMessage

Source: https://docs.applivery.com/en/api/aosp/devices/delete-device/

---

# Disenroll non-GMS Android device

**Required Permission:** `mdm.aosp.device.remove`

Creates a DISENROLL command; marks device as pending disenroll only when command push is queued successfully. Calling this again for a pending disenroll device reuses an active pending DISENROLL command or retries when the previous command has expired. Optional query: wipeDataFlags, wipeReasonMessage

_[ApiSecurity schema — see the canonical page]_

_[ApiParams schema — see the canonical page]_

No request body.

_[ApiResponse schema — see the canonical page]_
