---
title: "Delete SQL Query"
method: DELETE
path: "/sql/{sqlID}"
tags: ["SQL Queries"]
---

# Delete SQL Query

`DELETE /sql/{sqlID}`

## Request

- Base URL: `https://api.us-e1.tago.io`
- URL: `https://api.us-e1.tago.io/sql/{sqlID}`
- Auth: API key in header `Profile-Token`
- TypeScript: <https://skmtc.dev/tago/apis/tagoio-api/docs/sql/:sqlID/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a saved query.

## Response `200`

Saved query removed.

- object
  - `status` boolean
  - `result` string

## Other responses

- `404`: Saved query not found (or not owned by your profile).

## Changes

- **2026-11-07** `1a281f04cdab`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tago/apis/tagoio-api/changes/sql/:sqlID/delete.md)

---

[API](https://skmtc.dev/tago/apis/tagoio-api.md) - [All operations](https://skmtc.dev/tago/apis/tagoio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tago/apis/tagoio-api/revisions/1a281f04cdab?raw)
