Skip to main content
DELETE
https://example.com
/
api
/
users
/
{userId}
Delete user
curl --request DELETE \
  --url https://example.com/api/users/{userId} \
  --cookie better-auth.session_token=
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>",
    "statusCode": 123,
    "details": [
      {
        "message": "<string>",
        "path": "<string>"
      }
    ]
  }
}

Authorizations

better-auth.session_token
string
cookie
required

Path Parameters

userId
string
required
Minimum string length: 1

Response

User deleted