---
title: "Delete a saved log search. Refused while a log alert counts it."
method: DELETE
path: "/projects/{project_id}/logs/saved-searches/{saved_search_id}"
tags: ["Logs"]
---

# Delete a saved log search. Refused while a log alert counts it.

`DELETE /projects/{project_id}/logs/saved-searches/{saved_search_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/logs/saved-searches/{saved_search_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `saved_search_id` integer, required

## Response `204`

Saved search deleted

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Saved search not found
- `409`: Still used by a log alert
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/logs/saved-searches/:saved_search_id/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
