Delete a user
DELETE/panel/users/:user
Deletes a user.
You cannot delete your own account. Attempting to do so returns HTTP 200 — not an error status — with success: false and a message, so check the success field rather than the status code.
Request
Responses
- 200
- 401
- 403
- 404
Two possible bodies:
- Success:
{"success": true} - Attempting to delete yourself:
{"success": false, "message": "You can't delete yourself"}
The bearer token is missing, malformed, unknown, or expired.
The token is valid, but the user it belongs to may not perform this action:
- they are not a member of the
{workspace}in the path; or - their workspace role is too low for this endpoint (write routes require Admin or Member); or
- for
/panelendpoints, they are not a platform administrator.
The host application that Mixpost is installed into can also deny access to Mixpost as a whole, which produces the same response.
The requested record does not exist. The message names the missing record — for example Post not found., Tag not found., Media not found., Account not found. or User not found.