---
title: "Delete Invocation"
method: DELETE
path: "/invocations/{trace_id}"
tags: ["Invocations"]
---

# Delete Invocation

`DELETE /invocations/{trace_id}`

## Path parameters

- `trace_id` string, required

## Query parameters

- `span_id` string, nullable

## Response `200`

Successful Response

- InvocationLinkResponse
  - `count` integer
  - `invocation_link` OTelLinkOutput
    - `span_id` string, nullable
    - `trace_id` string, nullable
    - `attributes` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/ea6421d829f1/schema)
