---
title: "Delete group"
method: POST
path: "/api/index/v1/deletegroup"
tags: ["Permissions"]
---

# Delete group

`POST /api/index/v1/deletegroup`

Delete group from the datasource. Silently succeeds if group is not present.
Note: All memberships associated with the deleted group will also be deleted.

## Request body

- DeleteGroupRequest — Describes the request body of the /deletegroup API call
  - `version` integer — Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
  - `datasource` string, required — The datasource for which the group is removed
  - `groupName` string, required — the name of the group to be deleted

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `409` — Conflict

---

[API](https://skmtc.dev/gleanwork/apis/glean-indexing-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-indexing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-indexing-api/revisions/b47bf641faba/schema)
