---
title: "Hard-delete a single test case by ID."
method: DELETE
path: "/test/cases/{id}"
tags: ["TestCases"]
---

# Hard-delete a single test case by ID.

`DELETE /test/cases/{id}`

Permanently removes a test case and all its child entities (payments, chats, files, timeline entries, webhook delivery records) from the database.

**This is a hard-delete.** The row is removed entirely — there is no soft-delete or recovery path. This is intentional for CI environments that create many test cases per day.

**Guards:**
- Returns 400 if the case is classified as Production. Only Test cases may be deleted via this endpoint.
- Returns 404 if the case is not found or not owned by the calling creditor.

**Idempotent:** Returns 204 even if the case is already deleted (no-op).

## Path parameters

- `id` string, uuid, required

## Response `204`

Case deleted (or already absent — idempotent)

## Other responses

- `400` — Case is a Production case — deletion rejected
- `404` — Case not found or not owned by this creditor
- `500` — Internal server error

---

[API](https://skmtc.net/debitura/apis/debitura-customer-api.md) · [All operations](https://skmtc.net/debitura/apis/debitura-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debitura/debitura-customer-api/versions/46478f2e476f/schema)
