---
title: "Delete an Agent Observability prompt"
method: DELETE
path: "/api/v2/llm-obs/v1/prompts/{prompt_id}"
tags: ["Agent Observability"]
---

# Delete an Agent Observability prompt

`DELETE /api/v2/llm-obs/v1/prompts/{prompt_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/llm-obs/v1/prompts/:prompt_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Soft-delete an Agent Observability prompt. The prompt's version rows are retained, but they are no longer accessible through the public prompt registry endpoints.

## Path parameters

- `prompt_id` string, required

## Response `200`

OK

- LLMObsDeletedPromptResponse: Response confirming that an Agent Observability prompt was deleted.
  - `data` LLMObsDeletedPromptData, required: Data object confirming that an Agent Observability prompt was deleted.
    - `attributes` LLMObsDeletedPromptDataAttributes, required: Attributes confirming that an Agent Observability prompt was deleted.
      - `deleted_at` string, date-time, required: Timestamp when the prompt was deleted.
      - `prompt_id` string, required: Customer-provided identifier of the deleted prompt.
    - `id` string, required: Unique identifier of the deleted prompt.
    - `type` 'prompt-templates', required: Resource type of an Agent Observability prompt.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `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/c555647b183a?raw)
