Page tree
Skip to end of metadata
Go to start of metadata

You can delete a user with the DELETE request to the following URL: /user/{user_id}.

Permissions to run the request: Account Owner, Administrators, Department Administrators

Department Administrators can delete users belonging to the department they manage or its daughter departments.


Request Headers

ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Login of Account Owner, Administrator, or Department Administrator.
X-Auth-Password (required)Password of Account Owner, Administrator, or Department Administrator.

When a request is processed successfully, the system returns code 204.


Possible Response Codes

CodeTextDescription
204Successful operationA user is deleted.
400Bad RequestA request error.
401UnauthorizedAuthorization error.
403Permission DeniedThe user doesn't have enough permissions to delete another users.

Sample Request

DELETE /user/f29d887c-5cff-11e9-9e6a-0a580af40692 HTTP/1.1
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password

Sample Response

HTTP/1.1 204 Successful operation
Connection: close
  • No labels