---
title: "Delete Active Organization"
method: DELETE
path: "/api/v1/organizations/me"
tags: ["organizations"]
---

# Delete Active Organization

`DELETE /api/v1/organizations/me`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Otari-Key`
  - API key in header `x-api-key`

Delete the caller's active organization, if it has no usage, and move the caller out of it.

Owners and admins only. Its workspaces, memberships, invitations and
organization-level settings go with it. Refused for the deployment's default
organization, for the only organization the caller belongs to, and for one
whose workspaces still hold usage, API keys, aliases or routing policies, so
a deletion never takes spend history with it.

Answers with the caller's context in the organization they are moved to,
their oldest other one.

## Response `200`

Successful Response

- OrganizationMembershipContextPublic: An organization plus the caller's standing in it. What every tenancy page reads first: which organization it is looking at, and what the caller may do there.
  - `byo_provider_keys_allowed` boolean
  - `caller` CallerIdentityPublic: Who the caller is, as against what they may do. The account control at the foot of the dashboard's sidebar draws a person, and no authenticated route reported the caller's own name or address, so it drew a role for everybody who could reach it: "Operator", which is not a name and on a multi-tenant deployment was not even true (mozilla-ai/otari#832). Carried on the membership context for the reason ``deployment_operator`` is: the shell reads that context before it paints, so an identity taken from it needs no request of its own and cannot arrive a beat after the chrome it names. Publishing it costs nothing either, since it is the caller's own identity and they are holding the credential that resolved to it. ``email`` and ``full_name`` are nullable for opposite reasons. A local operator identity has no address, because first boot provisions it with a name and nothing to sign in with but the master key; a member added by address has no name until they claim the identity and supply one. So a shell has to be ready to draw either one alone.
    - `claims_deployment` boolean, required: Whether setting this identity's password claims the deployment, which stops the master key signing in to the dashboard. True for the deployment's operator until it holds a password, whether or not it already has an address; false for everybody else.
    - `email` string, nullable
    - `full_name` string, nullable
    - `has_password` boolean, required: Whether this identity holds a dashboard password. False for one that signs in only through an OAuth provider or a passkey, and for a roster entry nobody has claimed yet. PUT /api/v1/auth/password requires current_password from a cookie-authenticated caller exactly while this is true.
    - `user_id` string, uuid, required
  - `deployment_operator` boolean
  - `organization` OrganizationPublic, required
    - `created_at` string, date-time, required
    - `created_by_user_id` string, uuid, nullable
    - `id` string, uuid, required
    - `name` string, required
    - `slug` string, required
    - `updated_at` string, date-time, nullable
  - `organization_member_id` string, uuid, required
  - `provider_key_encryption_available` boolean
  - `role` string, required
  - `status` string, required
  - `workspace_memberships` CallerWorkspaceMembershipPublic[]
    - `name` string, required
    - `role` string, required
    - `workspace_id` string, uuid, required

## Other responses

- `400`: It is the deployment's default organization, or the only one the caller belongs to.
- `403`: The caller is not an owner or admin of the organization.
- `409`: The organization still holds usage, API keys, aliases or routing policies.

## Changes

- **2026-10-16** `1c433ac914dc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mozilla-ai/apis/otari/changes/api/v1/organizations/me/delete.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc.dev/mozilla-ai/apis/otari/revisions/b7bdd49b4752?raw)
