Delete User

Permanently delete a user from an instance

DELETE /api/v1/users/:id

Permanently deletes a user and all associated identities. This action cannot be undone.

Request

curl -X DELETE https://myapp.clowk.dev/api/v1/users/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "X-Clowk-Secret-Key: sk_live_..."

Headers

HeaderRequiredDescription
X-Clowk-Secret-KeyYesYour instance secret key

Path parameters

ParameterTypeDescription
idstringUser UUID

Response

200 — Deleted

{
  "deleted": true,
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

404 — User not found

{ "error": "User not found" }

On this page