---
title: "deleteCasesByCollectionExerciseId"
method: DELETE
path: "/casegroups/collectionExercise/{collectionExerciseId}"
tags: ["case-group-endpoint"]
---

# deleteCasesByCollectionExerciseId

`DELETE /casegroups/collectionExercise/{collectionExerciseId}`

deletes all casegroups, cases and caseevents

## Path parameters

- `collectionExerciseId` string, required

## Response `200`

OK

- object
  - `deleted` integer — count of deleted caseGroups

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/office-of-national-statistics/apis/case-service-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/case-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/case-service-api/revisions/dcc0c657a75b/schema)
