---
title: "Delete LLM Observability data"
method: POST
path: "/api/v2/llm-obs/deletion/data/llmobs"
tags: ["LLM Observability"]
---

# Delete LLM Observability data

`POST /api/v2/llm-obs/deletion/data/llmobs`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/llm-obs/deletion/data/llmobs`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Submit a request to delete LLM Observability span data matching a trace ID filter within a specified time range.

## Request body

- LLMObsDataDeletionRequest: Request to delete LLM Observability data.
  - `data` LLMObsDataDeletionRequestData, required: Data object for an LLM Observability data deletion request.
    - `attributes` LLMObsDataDeletionRequestAttributes, required: Attributes for an LLM Observability data deletion request.
      - `delay` integer: Optional delay in seconds before the deletion is executed.
      - `from` integer, required: Start of the deletion time range in milliseconds since Unix epoch.
      - `query` object, required: Query filters selecting the data to delete. Must include a `query` key with an `@trace_id` filter.
      - `to` integer, required: End of the deletion time range in milliseconds since Unix epoch.
    - `type` 'create_deletion_req', required: Resource type for an LLM Observability data deletion request.

## Response `202`

Accepted

- LLMObsDataDeletionResponse: Response containing details of a submitted LLM Observability data deletion request.
  - `data` LLMObsDataDeletionResponseData, required: Data object for an LLM Observability data deletion response.
    - `attributes` LLMObsDataDeletionResponseAttributes, required: Attributes of a submitted LLM Observability data deletion request.
      - `created_at` string, date-time, required: Timestamp when the deletion request was created.
      - `created_by` string, required: UUID of the user who created the deletion request.
      - `from_time` integer, required: Start of the deletion time range in milliseconds since Unix epoch.
      - `org_id` integer, required: ID of the organization that submitted the deletion request.
      - `product` string, required: Product name for the deletion request.
      - `query` string, required: The query string used to select data for deletion.
      - `to_time` integer, required: End of the deletion time range in milliseconds since Unix epoch.
    - `id` string, required: Unique identifier of the deletion request.
    - `type` 'deletion_request', required: Resource type for an LLM Observability data deletion response.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
