# Delete

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, optional)

## Response

```json
{}
```

