object EraseDeviceCommand
The command to erase a device.
object EraseDeviceResponse
A response from the device after it processes the command to erase.
PUT https://yourmdmhost.example.com/mdm#EraseDeviceCommand
The command to erase a device.
200 OK
OK
A response from the device after it processes the command to erase.
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.
Device Channel | iOS, macOS, Shared iPad, tvOS, watchOS |
User Channel | - |
Requires Supervision | - |
Allowed in User Enrollment | - |
Required Access Right | AllowDeviceErase |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Command</key>
<dict>
<key>DisallowProximitySetup</key>
<false/>
<key>PreserveDataPlan</key>
<true/>
<key>RequestType</key>
<string>EraseDevice</string>
</dict>
<key>CommandUUID</key>
<string>0001_EraseDevice</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CommandUUID</key>
<string>0001_EraseDevice</string>
<key>Status</key>
<string>Acknowledged</string>
<key>UDID</key>
<string>00008020-000915083C80012E</string>
</dict>
</plist>
object EraseDeviceCommand
object EraseDeviceResponse
Lock a Device
Restart a Device
Shut Down a Device