Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
users
/
:userId
Delete User
curl --request DELETE \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId
Permanently deletes the specified user and cascades cleanup across all of their related records. Reactions, files, follows, connections, notifications, collections, reports, and mentions are removed, and the user’s entities and comments are stripped of their authored content. This is the same full-cascade delete performed from the dashboard.
This is a hard, irreversible delete. It cannot be undone.

Authentication

Requires a service or master key. User auth tokens are rejected with a 403.

Path Parameters

userId
string
required
The Sublay user ID (UUID) to delete.

Response

On success, returns HTTP 204 No Content with an empty body.

Error Responses

{
  "error": "Service or master key required.",
  "code": "auth/elevated-auth-required"
}
{
  "error": "User not found.",
  "code": "user/not-found"
}
{
  "error": "...",
  "code": "user/invalid-params"
}
{
  "error": "Failed to delete the user.",
  "code": "user/server-error"
}

See Also