---
title: Delete User
framework: Device Management
role: symbol
role_heading: Web Service Endpoint
platforms: [iOS 9.3+, iPadOS 9.3+, Mac Catalyst 9.3+, macOS 10.13+]
path: devicemanagement/delete-user-command
---

# Delete User

Delete a user’s account from a device.

## URL

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

## Response Codes

200 OK: The response object the system returns for the Delete User Command.

## Discussion

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  |   |   |   |   |   |  Example request and response

## HTTP Body

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

## Topics

### Commands and responses

- [DeleteUserCommand](devicemanagement/deleteusercommand.md)
- [DeleteUserResponse](devicemanagement/deleteuserresponse.md)

## See Also

### User management

- [User List](devicemanagement/user-list-command.md)
- [Log Out User](devicemanagement/log-out-user-command.md)
