Delete user
Removes user and its references (like project roles associations, watches, history). Note: user references will not be removed if multiple User Directories are used and there is a user with the same name existing in another directory (shadowing user).
DELETE
/api/2/userAuthorization
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
Query parameters
keystringuser key
usernamestringthe username
Responses
204
Returned if the user was deleted successfully.
400
Returned if the request is invalid or some other server error occurred.
401
Returned if the user is not authenticated.
403
Returned if the caller does not have permission to remove the user.
404
Returned if the caller does have permission to remove user but the user does not exist.