Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dacard.ai/llms.txt

Use this file to discover all available pages before exploring further.

Permanently delete the caller’s account and all associated data: products, scores, integrations, tribal notes, team memberships, billing record. Irreversible. The transaction runs as a single hard-delete; there is no soft-delete grace window.
curl -X DELETE https://app.dacard.ai/api/account/delete \
  -H "Authorization: Bearer $DACARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "confirmation": "DELETE" }'
PropertyValue
AuthRequired
Required scopeCaller must be the account owner (Clerk-verified)
IdempotentYes (subsequent calls return 404)

Body

FieldTypeRequiredNotes
confirmationstringyesMust be the literal string DELETE. Belt-and-braces against accidental client-side fires.

Effects

  • All rows tagged with the caller’s accountId are deleted.
  • Active Stripe subscription is cancelled (no proration).
  • OAuth tokens for connected integrations are revoked at the provider where the API supports it.
  • Outgoing webhooks are deleted.
  • Audit log entry: account_deleted (written before the delete cascade).

Errors

StatusCodeWhen
400Missing confirmationBody missing confirmation: "DELETE".
401AUTH_REQUIREDNo session.
403FORBIDDENCaller is not the account owner.
500INTERNAL_ERRORCascade failed mid-flight. Sentry traced.