---
title: "Delete query in query history."
method: DELETE
path: "/query-history/{query_history_uid}"
tags: ["query_history"]
---

# Delete query in query history.

`DELETE /query-history/{query_history_uid}`

Deletes an existing query in query history as specified by the UID. This operation cannot be reverted.

## Path parameters

- `query_history_uid` string, required

## Response `200`

(empty)

- QueryHistoryDeleteQueryResponse — QueryHistoryDeleteQueryResponse is the response struct for deleting a query from query history
  - `id` integer
  - `message` string

## Other responses

- `401` — UnauthorizedError is returned when the request is not authenticated.
- `500` — InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.net/nforgeio/apis/grafana-http-api.md) · [All operations](https://skmtc.net/nforgeio/apis/grafana-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nforgeio/grafana-http-api/versions/3cb6c3f42dc7/schema)
