Skip to main content
DELETE
https://api.mor.org
/
api
/
v1
/
auth
/
register
Delete User Account
curl --request DELETE \
  --url https://api.mor.org/api/v1/auth/register \
  --header 'Authorization: <authorization>'
{
  "message": "<string>",
  "user_id": 123,
  "deleted_at": "<string>",
  "deleted_data": {
    "api_keys": 123,
    "sessions": 123,
    "private_key": true,
    "automation_settings": true,
    "delegations": 123
  },
  "cognito_deletion": {
    "success": true,
    "cognito_user_id": "<string>",
    "message": "<string>"
  }
}
Delete the current user’s account and all associated data. This action is irreversible and will permanently delete all data associated with your account. Requires JWT Bearer authentication.

What Gets Deleted

  1. All sessions
  2. All API keys
  3. Private key data (via cascade)
  4. Automation settings (via cascade)
  5. Delegation data (via cascade)
  6. The user account
  7. Cognito identity (deleted/deactivated)

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Response

message
string
Success message confirming account deletion
user_id
integer
The ID of the deleted user
deleted_at
string
ISO 8601 timestamp of deletion
deleted_data
object
Summary of data that was deleted
cognito_deletion
object
Information about Cognito identity deletion
IRREVERSIBLE ACTION: This permanently deletes your account and all associated data. This action cannot be undone. Make sure to:
  • Export any data you need before deletion
  • Close any active sessions
  • Save your API keys if needed for records
  • Understand that all blockchain delegations will be revoked
Active Sessions: Any active blockchain sessions will be terminated immediately upon account deletion. This may result in loss of unused session time.
GDPR Compliance: This endpoint ensures full compliance with data deletion requirements under GDPR and similar privacy regulations by removing all personal data from both the application database and the authentication provider (Cognito).
After account deletion, you will be immediately logged out and your JWT token will be invalidated. You will need to create a new account if you wish to use the service again.