---
title: "DELETE /apl-starred-queries/{id}"
method: DELETE
path: "/apl-starred-queries/{id}"
tags: ["starred"]
---

# DELETE /apl-starred-queries/{id}

`DELETE /apl-starred-queries/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/apl-starred-queries/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `starredQueries|delete`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/apl-starred-queries/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a saved query by its ID. With a personal access token, you can only delete queries you saved.

## Path parameters

- `id` string, required

## Response `204`

Saved query deleted.

## Other responses

- `401`: The saved query belongs to another user.
- `403`: You don't have permission to delete saved queries on the query's dataset.
- `404`: Saved query not found.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 3 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/apl-starred-queries/:id/delete.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
