Skip to main content
Browse Documentation
HTTP - Management

Delete a user

Created by s.yearsley, last modified by zengenti on 17 Jun 2022

Deleting a user can be done by sending a DELETE request to the user resource location.

DELETE/api/security/users/{userIdentifier}

Parameter

NameParameter typeTypeFormatDescriptionExampleRequired
UserIdentifierpathstringuser identifierFor convenience, User resources can be referenced by using one of several identifiers - username, email address or Id."82f73a9b-2a13-4d63-bcc1-e8ee5047b01c" or "t.durden" or "t.durden@fightclub.com"true

Examples

Delete a user by user id

HTTP
DELETE: /api/security/users/82f73a9b-2a13-4d63-bcc1-e8ee5047b01c

Delete a user by username

HTTP
DELETE: /api/security/users/tdurden

Delete a user by email

HTTP
DELETE: /api/security/users/t.durden@fightclub.com

Remarks

Permissions

Member of System Administrators are permitted to delete any other user account.

Authenticated Standard User accounts are permitted to delete their own account.

Responses

HTTP status codeReasonModel
204Success
401UnauthorizedError
403ForbiddenError
404User not foundError
500Internal server errorError