Skip to content
skcal
Esc
↑↓navigate↵open⌘Jpreview

Delete the caller's account

Permanently deletes the signed-in account and everything it owns: weigh-ins, measurements, meals, food items, photos, workouts, targets, agent conversations and memories, reminders, API keys, linked phone numbers, sessions, and the sign-in itself. A Stripe subscription is cancelled. An App Store subscription has to be cancelled in the Apple ID settings. Requires a signed-in session; API keys and the messaging agent cannot call it. This cannot be undone.

DELETE/api/account
Authorization
__Secure-better-auth.session_tokenAPI key · cookierequired

Better Auth session. Signing in (Google or email magic link) sets an HttpOnly session cookie that scopes every request to that account. The web app and CLI use this; agents use the OAuth 2.1 flow of the MCP server.

or
AuthorizationBearer token · headerrequired

Personal API key sent as Authorization: Bearer skcal_…. Create and scope keys in the app under your profile → API keys. Keys default to full access; a scoped key is limited to its granted resource:action permissions and cannot manage other keys.

Responses
200

The account and all of its data were deleted.

okbooleanrequired

Always true.

401

No signed-in session.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

403

Called with an API key or by the messaging agent, which cannot delete accounts.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

502

Stripe or the iMessage provider refused the cleanup. The account's data was not deleted; retry.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

503

The account has a Stripe customer but billing is not configured. The account's data was not deleted.

errorstringrequired

Human-readable failure reason.

detailstring

Optional extra context, present on upstream failures.

Try it
Server
Authorization
Request
curl -X DELETE 'https://app.skcal.fit/api/account' \
  -H 'Cookie: __Secure-better-auth.session_token=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "ok": true
}

Was this page helpful?