# Delete Invocation

Source: https://agenta.ai/docs/reference/api/delete-invocation

`DELETE /invocations/{trace_id}`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Delete Invocation

## Parameters

- `trace_id` (in path, string, required)
- `span_id` (in query, string)

## Response schemas

### 200: Successful Response

- `count` (integer) Default: `0`.
- `invocation_link` (object, nullable)
  - `span_id` (string, nullable)
  - `trace_id` (string, nullable)
  - `attributes` (object, nullable)

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
