Skip to main content

Delete a user

A user is deleted through a DELETE call containing the unique, permanent userId of the user. The action also deletes all registered authenticators for this user.

Irreversible Destructive Action

This action is destructive and cannot be reversed.

Send an HTTP request to the users endpoint

For detailed information on the HTTP request parameters and response fields, see the Users endpoint page of the API reference documentation.

Send the DELETE https://{instance}.mauth.nevis.cloud/api/v1/users/{userId} call with your instance ID and the userId of the given user. Your access key must be sent in the Authorization Bearer token header

HTTP request examples

cURL code sample for deleting a user
# Set $userId
curl "https://$instance.mauth.nevis.cloud/api/v1/users/$userId" \
-X DELETE \
-H "Authorization: Bearer $access_key"

HTTP response examples

No response body is returned in case of successful deletion.

204 No Content: User and associated authenticators are successfully deleted.

404 Not found: No user with provided userId exists.