# DELETE /v1/tasks/{task_id}

> Delete it and its outputs.

In [Work API](https://vestra.ai/developers/reference/api/work.md): The work Bash does on its computer: list it, read it, stop it or delete it.

Send `Authorization: Bearer vk_test_...` on every call.

Delete it and its outputs.

Your API key, scope `runtime` or `all`. On the card: [`ask`](https://vestra.ai/developers/ask.md). Over HTTP it is made from the contract: fill in each {…} and every value.

## Request

Path:

- `task_id` (`string`, required): The piece of work's id (`task_...`).

## Answers 200

- `id` (`string`): The task (task_...).
- `object` (`"task"`): Always task.
- `deleted` (`true`): Always true: it is gone, stopped first if it was running.

## Code

**HTTP**

```bash
curl -X DELETE "$VESTRA_BASE_URL/v1/tasks/{task_id}" \
  -H "Authorization: Bearer $VESTRA_API_KEY"
```

**TypeScript, Python, CLI, MCP**: No sample in your language for this route, so here it is over HTTP.
