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" }'
| Property | Value |
|---|
| Auth | Required |
| Required scope | Caller must be the account owner (Clerk-verified) |
| Idempotent | Yes (subsequent calls return 404) |
Body
| Field | Type | Required | Notes |
|---|
confirmation | string | yes | Must 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
| Status | Code | When |
|---|
| 400 | Missing confirmation | Body missing confirmation: "DELETE". |
| 401 | AUTH_REQUIRED | No session. |
| 403 | FORBIDDEN | Caller is not the account owner. |
| 500 | INTERNAL_ERROR | Cascade failed mid-flight. Sentry traced. |