Contents

Delete User

Delete a user’s account from a device.

URL

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

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/xml
DeleteUserResponse

The response object the system returns for the Delete User Command.

Discussion

Refer to the following sections to determine supported channels and requirements, and to see an example request and response.

Error codes

An error response uses one of the following error codes:

  • 12071: The user doesn’t exist.

  • 12072: The user is currently logged in.

  • 12073: The user has data to sync and ForceDeletion is false or unspecified.

  • 12074: Unable to delete the user. In macOS, this error code also returns for an attempt to delete the last administrator account.

Command availability

Device channel

iOS, macOS

User channel

NA

Requires supervision

macOS

Allowed in user enrollment

NA

Required access right

NA

Example request and response

HTTP Body

The request object the server returns for the Delete User Command.

Topics

Commands and responses

See Also

User Management