# Remove a case from a suite

Source: https://docs.vlayers.ai/reference/test/remove-test-case

`DELETE /v1/tests/{id}/cases/{caseId}` · scope `workspace:write`

Removes one case. Runs already made from it are kept.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The suite id. Example: `"0192f5f8-c1d0-7b2e-8d7e-8f9012345678"` |
| `caseId` | path | string | yes | The case id. Example: `"0192f5f9-d2e1-7c3f-9e8f-90123456789a"` |

## Request

cURL:

```bash
curl -X DELETE "https://api.vlayers.ai/v1/tests/$SUITE_ID/cases/$CASE_ID" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

await voicelayer.test.removeCase('<suite-id>', '<case-id>');
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

vl.test.remove_case("<suite-id>", "<case-id>")
```

## Response `200`

```json
{
  "removed": true
}
```
