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

# Delete Organization

`DELETE /api/v1/organizations/current`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/organizations/current`
- Auth: none declared

The agreement's self-serve termination lever (TEA-470). The org row
is deleted here, on the request path — every tenant-scoped table
cascades in the same transaction, so the data is gone at the 204 —
while everything the cascade cannot reach (SAML providers, the Stripe
customer, orphaned members' auth users, the docs-domain edge stack)
is torn down by the offboarding workflow started just before.

Ordering mirrors the docs-domain removal: connect (or refuse 503)
before anything mutates, start the teardown, THEN destroy the row —
started-but-uncleaned heals (the workflow's first activity re-deletes
the row fleet-side), cleared-but-unstarted would orphan every external
resource, and the caller cannot retry once their membership row is
gone. The org's AWS Marketplace licenses are released in the delete's
own transaction; a live one still bills the customer through AWS, so
each pages the operator once the delete has committed.

## Query parameters

- `confirm_name` string, required
- `confirm` boolean

## Response `204`

Successful Response

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `409`: The balance still holds money, owes money, or funds work in flight — and the delete was not confirmed
- `422`: confirm_name did not match the organization's name
- `500`: Internal server error
- `503`: The orchestration service is unreachable; nothing was deleted

## Changes

- **2026-11-03** `c6ac9fd6657f`: 8 info
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `401`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `403`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `404`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `405`
  - …4 more

[Operation history](https://skmtc.dev/teaflask/apis/teaflask-api/changes/api/v1/organizations/current/delete.md)

---

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