<!--
{
  "availability" : [
    "iOS: 7.1.0 -",
    "iPadOS: 7.1.0 -",
    "macCatalyst: 7.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/Clear-Activation-Lock-Bypass-Code-Command",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rest:put:mdm#ClearActivationLockBypassCodeCommand"
  },
  "title" : "Clear Activation Lock Bypass Code"
}
-->

# Clear Activation Lock Bypass Code

Clear the Activation Lock bypass code on a device.

## Discussion

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, visionOS|
|User channel              |N/A                 |
|Requires supervision      |iOS, macOS, visionOS|
|Allowed in user enrollment|N/A                 |
|Required access right     |N/A                 |

### Example request and response

**Request:**

```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>Command</key>
    <dict>
        <key>RequestType</key>
        <string>ClearActivationLockBypassCode</string>
    </dict>
    <key>CommandUUID</key>
    <string>0001_ClearActivationLockBypassCode</string>
</dict>
</plist>
```

**Response:**

```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_ClearActivationLockBypassCode</string>
    <key>Status</key>
    <string>Acknowledged</string>
    <key>UDID</key>
    <string>00008020-000915083C80012E</string>
</dict>
</plist>
```

## Topics

### Commands and responses

[`object ClearActivationLockBypassCodeCommand`](/documentation/DeviceManagement/ClearActivationLockBypassCodeCommand)

The command to clear the Activation Lock bypass code on a device.

[`object ClearActivationLockBypassCodeResponse`](/documentation/DeviceManagement/ClearActivationLockBypassCodeResponse)

A response from the device after it processes the command to clear the Activation Lock bypass code on a device.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)