---
title: "Delete organization"
method: DELETE
path: "/api/organizations/{id}"
tags: ["Organizations"]
---

# Delete organization

`DELETE /api/organizations/{id}`

## Request

- Base URL: `https://demo.supercheck.dev`
- URL: `https://demo.supercheck.dev/api/organizations/{id}`
- Auth: API key in cookie `better-auth.session_token`

Owner only. Only empty organizations without protected dependencies can be deleted. Selected browser session references are cleared atomically. Organizations containing projects or protected dependencies return 409; contact an administrator or support for safe removal. Browser mutations require a same-origin request; CLI tokens retain their existing authorization. Requires an interactive browser session. Project-scoped CLI tokens receive 403.

## Response `200`

Organization deleted

- object
  - `success` boolean
  - `message` string

## Other responses

- `401`: Authentication required or token invalid
- `403`: Insufficient permissions
- `404`: Resource not found
- `409`: Organization contains projects or protected dependencies; removal requires administrator or support assistance.
- `500`: Internal server error

## Changes

- **2026-10-19** `bfc5fb32bad1`: 1 info
  - the endpoint scheme security `sessionCookie` was added to the API
- **2026-10-04** `8f437815c6ff`: 1 info
  - added the non-success response with the status `409`
- **2026-10-01** `0114b54c259d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/organizations/:id/delete.md)

---

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