---
title: Erase Device
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/erase-device-command
---

# Erase Device

Remotely and immediately erase a device.

## URL

PUT https://yourmdmhost.example.com/mdm

## Response Codes

200 OK: The response object the system returns for the Erase Device Command.

## Mentioned in

Returning a managed device to service

## Discussion

Discussion This command allows the server to immediately erase a device, even a locked device, without warning the user. The device sends a response to the server, but it doesn’t retry if it isn’t successful the first time. Refer to the following sections to determine supported channels and requirements, and to see an example request and response. Command availability  |   |   |   |   |   |  Example request and response

## HTTP Body

The request object the server returns for the Erase Device Command.

## Topics

### Commands and responses

- [EraseDeviceCommand](devicemanagement/erasedevicecommand.md)
- [EraseDeviceResponse](devicemanagement/erasedeviceresponse.md)

## See Also

### Device state

- [Device Lock](devicemanagement/device-lock-command.md)
- [Restart Device](devicemanagement/restart-device-command.md)
- [Shut Down Device](devicemanagement/shut-down-device-command.md)
