Request deletion of the signed-in user's own account.
const url = 'https://api.tradr.cloud/api/users/me/deletion';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tradr.cloud/api/users/me/deletion \ --header 'Content-Type: application/json' \ --data '{ "password": "example" }'Authed and DESTRUCTIVE. Requires the account password (checked server-side). With no renewing subscription the account is deleted immediately and the session cookie is cleared; otherwise deletion is scheduled for when billing resolves and the response carries that instant. Rate limited to 5 requests per 15 minutes per user, tightening to 3 while the shared rate-limit store is unavailable.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "password": "example"}Responses
Section titled “ Responses ”AccountDeletionResult — { outcome: 'deleted' } (session cleared) or { outcome: 'scheduled', scheduledFor }.
object
Example
{ "outcome": "deleted"}VALIDATION_ERROR — the password is missing or outside 8-72 characters.
No valid session.
INVALID_PASSWORD — the password does not match.
LAST_ADMIN, SUBSCRIPTION_UNRESOLVED, or DELETION_IN_PROGRESS.
Rate limit exceeded (5 / 15 min per user).
STRIPE_CANCEL_FAILED — the subscription could not be updated; nothing was deleted.