---
title: "Delete Company"
method: DELETE
path: "/workspaces/{workspace_id}/companies/{company_id}"
tags: ["companies"]
---

# Delete Company

`DELETE /workspaces/{workspace_id}/companies/{company_id}`

## Request

- Base URL: `https://api.claimkit.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.claimkit.co/workspaces/{workspace_id}/companies/{company_id}`
- Auth: none declared

Delete a company. Caller must be a workspace member.

The Postgres FK from ``claims.company_id`` is ``ON DELETE RESTRICT``, so
deleting a company still referenced by any claim raises ``IntegrityError``.
Translate that into a 409 with a helpful message rather than a raw 500.

## Path parameters

- `workspace_id` integer, required
- `company_id` integer, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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