Skip to main content
Delete User
Permanently deletes the specified user and cascades cleanup across all of their related records. Reactions, files, follows, connections, notifications, collections and the user’s own report filings are removed (a report others also filed stays open, one reporter fewer). Open reports on the user’s content are closed (status: "auto-closed", actionTaken: "Its author's account was deleted.") and kept as history. The user’s drafts are deleted, with everything attached to them (files, reactions, comments, collection entries, reports). Their published entities and comments stay, with no author (userId: null) and stripped of everything they wrote: title, content, attachments, mentions and metadata, and on an entity also its keywords and location. Their comments are marked deleted (userDeletedAt set) and read as deleted placeholders: like any deleted comment, they take no new replies, quotes, reactions or reports. Reputation grants they sent stay (the recipients keep their reputation) but lose their note and metadata. Their chat messages are deleted the way a user deleting their own message deletes it: content, GIF, mentions and metadata are cleared, attached files are removed and userDeletedAt is set, and each message stays in its conversation as a deleted placeholder with its userId set to null, so replies and quotes still point at it. Each conversation’s connected clients get the message:deleted event for every message this deletes, as they do when a user deletes their own. Mentions of the user in other entities, comments and chat messages keep their text, but their id and foreignId become null. 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 key. User auth tokens are rejected with a 403. The key deletes the user as the app; the user the request is about is the one in the path, so sending actingUserId is refused (400 user/unsupported-param).

Path Parameters

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

Response

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

Error Responses

The request sent actingUserId, in the body or the query. The user this request is about is the one in the path, and the key deletes them as the app.

See Also