Cancel the signed-in user's scheduled deletion.
DELETE
/api/users/me/deletion
const url = 'https://api.tradr.cloud/api/users/me/deletion';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.tradr.cloud/api/users/me/deletionAuthed. Cancels a scheduled deletion and re-enables any subscription renewal it had turned off. A cancelling or firing schedule cannot be cancelled.
Responses
Section titled “ Responses ”The schedule was cancelled; the status is back to nulls.
Media typeapplication/json
object
scheduledFor
string
state
string
Examplegenerated
{ "scheduledFor": "example", "state": "example"}No valid session.
BILLING_NOT_AVAILABLE — billing is unconfigured, so a renewal cannot be restored.
NO_DELETION_SCHEDULED — nothing is scheduled to cancel.
DELETION_IN_PROGRESS — the deletion is already cancelling or firing.
STRIPE_REENABLE_FAILED — the subscription renewal could not be restored.