---
title: "Delete a company (v2)"
method: DELETE
path: "/v2/companies/{companyId}"
tags: ["companies"]
---

# Delete a company (v2)

`DELETE /v2/companies/{companyId}`

## Request

- Base URL: `https://api.prod.getdex.com`
- URL: `https://api.prod.getdex.com/v2/companies/{companyId}`
- Auth: HTTP bearer

Permanently delete a company and its logo. Owners and admins only; closed to API keys. 404 `record_not_found` when it is not in the workspace. Workspace-only: send the `X-Dex-Workspace` header (404 `record_not_found` without it). `Idempotency-Key` is optional. Returns `{ data: { affected: 1, ids: [companyId] } }`.

## Path parameters

- `companyId` string, uuid, required

## Headers

- `Idempotency-Key` string

## Response `200`

Successful response

- object
  - `data` object, required
    - `affected` integer, required
    - `ids` string[]
    - `failed` object[]
      - `id` string, required
      - `error` object, required
        - `code` string, required
        - `message` string, required

## Other responses

- `400`: Request body failed validation.
- `401`: Missing or invalid API key.
- `403`: Valid key, insufficient permission.
- `404`: Resource does not exist.
- `409`: Request conflicts with the current state of the resource.
- `429`: Rate limit exceeded.
- `500`: Unexpected server error.

## Changes

- **2026-10-22** `657247ddcf7c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getdex/apis/dex-public-api/changes/v2/companies/:companyId/delete.md)

---

[API](https://skmtc.dev/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.dev/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getdex/apis/dex-public-api/revisions/657247ddcf7c?raw)
