---
title: "Delete a group"
method: DELETE
path: "/groups/{id}"
tags: ["Mailbox access"]
---

# Delete a group

`DELETE /groups/{id}`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/groups/{id}`
- Auth: HTTP bearer

Deletes a group; its mailbox access entries go with it. With an org-wide API key or the person's own Primitive CLI only role-free groups are deleted.

## Path parameters

- `id` string, uuid, required

## Response `200`

Delete a group

- object
  - `success` true, required
  - `data` DeleteGroupResult, required
    - `deleted` true, required
    - `id` string, required

## Other responses

- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: feature_disabled: the feature is not enabled for the organization; or not_found: the item the path names does not exist.
- `409`: conflict: the item changed while you edited it, or a member was removed and added back. Look again, then retry.
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

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