Contents

Clear Passcode

Remove the passcode from a device.

URL

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

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/xml
ClearPasscodeResponse

The response object the system returns for the Clear Passcode Command.

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

Device channel

iOS, visionOS, watchOS

User channel

NA

Requires supervision

NA

Allowed in user enrollment

NA

Required access right

AllowPasscodeRemovalAndLock

Example request and response

HTTP Body

The request object the server returns for the Clear Passcode Command.

Topics

Commands and responses

See Also

Passwords