Unicat API Reference

Up - API Reference - Home


/api/account/delete

Requires JWT.

Delete the current account.

USE WITH CARE!

This deletes the account, all projects and assets owned by the account, and removes the user from any memberships of other projects.

THIS ACTION IS NOT RECOVERABLE!

Note: if the account owned projects, some information is kept for administrative purposes.

Request

POST /api/account/delete
Authorization: Bearer <JWT>

{
    "confirm": true,
}

confirm You must confirm the delete action - it is not recoverable.

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {},
    "data": {}
}

There is no result info or data in the response because the account no longer exists.

Note: you'll get an updated JWT to reflect the deleted account.

result

user is the user gid for the deleted account.

Error response

400 Bad request - missing argument
401 Unauthorized - missing or expired JWT
422 Unprocessable Entity - deletion failed