---
title: "Delete Group"
method: DELETE
path: "/api/chunk_group/{group_id}"
tags: ["Chunk Group"]
---

# Delete Group

`DELETE /api/chunk_group/{group_id}`

This will delete a chunk_group. If you set delete_chunks to true, it will also delete the chunks within the group. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.

## Path parameters

- `group_id` string, uuid, required

## Query parameters

- `delete_chunks` boolean, required

## Headers

- `TR-Dataset` string, uuid, required

## Response `204`

Confirmation that the chunkGroup was deleted

## Other responses

- `400` — Service error relating to deleting the chunkGroup

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/versions/84583e7c9fc1/schema)
