---
title: Clear Passcode
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/clear-passcode-command
---

# Clear Passcode

Remove the passcode from a device.

## URL

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

## Response Codes

200 OK: The response object the system returns for the Clear Passcode Command.

## Discussion

Discussion Clearing the passcode in iOS 16 no longer adds the passcode to the history of passcodes. Therefore, the user can reuse the cleared passcode even when the Passcode payload has the pinHistory key set. 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 Clear Passcode Command.

## Topics

### Commands and responses

- [ClearPasscodeCommand](devicemanagement/clearpasscodecommand.md)
- [ClearPasscodeResponse](devicemanagement/clearpasscoderesponse.md)

## See Also

### Passwords

- [Clear Restrictions Password](devicemanagement/clear-restrictions-password-command.md)
- [Unlock User Account](devicemanagement/unlock-user-account-command.md)
- [Set Auto Admin Password](devicemanagement/set-auto-admin-password-command.md)
- [Set Firmware Password](devicemanagement/set-firmware-password-command.md)
- [Verify Firmware Password](devicemanagement/verify-firmware-password-command.md)
