Contents

Erase Device

Remotely and immediately erase a device.

URL

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

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/xml
EraseDeviceResponse

The response object the system returns for the Erase Device Command.

Mentioned in

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

Device channel

iOS, macOS, Shared iPad, tvOS, visionOS, watchOS

User channel

NA

Requires supervision

macOS

Allowed in user enrollment

NA

Required access right

AllowDeviceErase

Example request and response

HTTP Body

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

Topics

Commands and responses

See Also

Device State