# Delete a query

Launch stage: GA

`DELETE /api/2.0/sql/queries/{id}`

Moves a query to the trash. Trashed queries immediately disappear from searches and list views, and cannot be used for alerts. You can restore a trashed query through the UI. A trashed query is permanently deleted after 30 days.

API scopes: sql

## Path parameters

- `id` (string, required)
  Example: `fe25e731-92f2-4838-9fb2-1ca364320a3d`

## Response

```json
{}
```

