---
title: "Delete the signed-in user's account."
method: DELETE
path: "/users/me"
tags: ["users"]
---

# Delete the signed-in user's account.

`DELETE /users/me`

## Request

- Base URL: `https://api.shorebird.dev/api/v1`
- URL: `https://api.shorebird.dev/api/v1/users/me`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Permanently deletes the signed-in user's account. Every
organization the deletion would leave without members (any
organization the user is the only member of) is deleted with all
of its apps, their releases, patches and stored artifacts. The
user's other memberships are removed. This cannot be undone.

An account with many apps is deleted over several requests: a
`202` says how many apps are left, and the same request continues
from there.

Refused with a `409`, before anything is deleted, while the user
owns an organization that has other members (transfer it, remove
them or delete it first), or has a Stripe subscription that can
still bill (cancel it first).

Needs a signed-in session that is not narrowed to a subset of
permissions: an API key is refused with a `403`
(`personal_access_token_forbidden`), and a narrowed session with
`api_key_insufficient_permissions`.

## Response `202`

Part of the account was deleted, and the request stopped before
its timeout with apps still to go. Make the same request again,
until it answers `204`.

- DeleteUserInProgressResponse: An account delete that stopped partway, before its request timeout. Repeat the request to continue.
  - `remaining_app_count` integer, required: The apps still to delete when the request stopped.

## Other responses

- `204`: The account was deleted.
- `401`: An `Authorization` header was sent but its credential is invalid or expired (`user_get_unauthorized`).
- `403`: The credential is an API key (`personal_access_token_forbidden`) or a narrowed session (`api_key_insufficient_permissions`).
- `404`: No user is signed in (`user_get_user_not_found`).
- `409`: The user owns an organization with other members (`user_delete_blocked_by_team_orgs`; the message names them) or has a subscription that can still bill (`user_delete_blocked_by_active_subscription`).
- `424`: Stripe, storage or the database failed (`user_delete_error`). Apps and organizations deleted before the failure stay deleted; retrying finishes the deletion.
- `default`: Standard error response. Emitted for any non-2xx status where a body can be decoded into an [ErrorResponse].

---

[API](https://skmtc.dev/shorebird/apis/shorebird-codepush-api.md) - [All operations](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/revisions/941da8871d10?raw)
