---
title: "Delete Queries"
method: DELETE
path: "/api/v2/Queries/{queryId}"
tags: ["Queries"]
---

# Delete Queries

`DELETE /api/v2/Queries/{queryId}`

Delete a FortiCNAPP Query Language (LQL) query registered in your FortiCNAPP instance by invoking the following endpoint:

  > `DELETE https://YourAccount.lacework.net/api/v2/Queries/{queryId}`

  Replace `{queryId}` with the `queryId` value returned for an LQL query in the response when invoking the following endpoint: `GET /api/v2/Queries`.

## Path parameters

- `queryId` string, required

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Response `204`

Success

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
