Skip to content

Delete a user
Deprecated

Request

Deletes a user.

⚠️ Deprecation Notice: This endpoint is deprecated. To remove a user from the enterprise, use DELETE /authn2/v0/tenant/{enterprise_id}/user/{user_id}/. It expects the UUID authn_user_id from GET /authn2/v1/users/, not the integer id from GET /user/.

Security
esper_cloud_api_apiKey
Path
user_idintegerrequired

User ID

cURL
curl -i -X DELETE \
  'https://api.esper.io/_mock/openapi/user/{user_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Deleted User

Response
No content