---
title: "Delete a restriction query"
method: DELETE
path: "/api/v2/logs/config/restriction_queries/{restriction_query_id}"
tags: ["Logs Restriction Queries"]
---

# Delete a restriction query

`DELETE /api/v2/logs/config/restriction_queries/{restriction_query_id}`

Deletes a restriction query.

## Path parameters

- `restriction_query_id` string, required

## Response `204`

OK

## Other responses

- `400` — Bad Request
- `403` — Authentication error
- `404` — Not found
- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
