Permanently delete a saved query. This action cannot be undone.
Bearer token obtained from the authenticate endpoint.
Unique identifier of the saved query to delete.
Response
curl -X DELETE https://api.trellis.sh/v1/queries/sq_002 \
-H "Authorization: Bearer YOUR_TOKEN"
import requests
response = requests.delete(
"https://api.trellis.sh/v1/queries/sq_002",
headers={"Authorization": "Bearer YOUR_TOKEN"}
)
result = response.json()
const response = await fetch("https://api.trellis.sh/v1/queries/sq_002", {
method: "DELETE",
headers: { Authorization: "Bearer YOUR_TOKEN" },
});
const result = await response.json();
{
"message": "Query deleted successfully"
}
{
"detail": "Query not found"
}