---
title: "Delete your account after a new sign-in"
method: POST
path: "/api/account/delete"
---

# Delete your account after a new sign-in

`POST /api/account/delete`

## Request

- Base URL: `https://api.peelaway.io`
- URL: `https://api.peelaway.io/api/account/delete`
- Auth: API key in cookie `better-auth.session_token`

Requires JSON {confirmation:'DELETE',challenge}. The session must have been created after the challenge. A guest account (opened in the app before sign-up) has no credential to sign in again with, so it sends only {confirmation:'DELETE'} from its own session. Revokes Apple tokens, cancels Stripe subscriptions without a final charge and expires open checkouts, cancels Google Play renewals, stops pending Look and Moment workflows, and purges stored images before Better Auth deletes the account and related database rows. App Store subscriptions must be canceled by the customer in their Apple account.

## Response `200`

{deleted:true}

## Other responses

- `400`: Invalid confirmation or cleanup unavailable; retry
- `403`: Subsequent sign-in required

---

[API](https://skmtc.dev/peelaway/apis/peelaway-image-api.md) · [All operations](https://skmtc.dev/peelaway/apis/peelaway-image-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peelaway/apis/peelaway-image-api/revisions/8ce45533c9d0?raw)
