---
title: "Delete a group."
method: DELETE
path: "/groups/{groupId}.json"
tags: ["Groups"]
---

# Delete a group.

`DELETE /groups/{groupId}.json`

## Request

- Base URL: `https://passbolt.local`
- URL: `https://passbolt.local/groups/{groupId}.json`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/passbolt/apis/passbolt-api/docs/groups/:groupId.json/delete.ts> (a function with typed inputs; its response is checked against the schema)

Only a group manager or a user with administrator role can delete a group. A group cannot be deleted as long as it is the sole owner of a shared resource or folder.

## Path parameters

- `groupId` string, uuid, required

## Response `200`

Operation is successful.

- object
  - `header` Header, required
    - `id` string, uuid, required
    - `status` 'success' | 'error', required
    - `servertime` integer, required
    - `action` string, uuid, required
    - `message` string, required
    - `url` string, uri, required
    - `code` integer, required
  - `body` unknown, required

## Other responses

- `400`: Bad request
- `401`: Authentication required.
- `404`: Not found

---

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