Join us for our Developer Platform Hackathon, May 16-17. Apply now →
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.views.queries.delete({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab",
query_id: "b4e2c3d5-6789-4abc-def0-1234567890cd"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true
}Delete a cached view query.
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.views.queries.delete({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab",
query_id: "b4e2c3d5-6789-4abc-def0-1234567890cd"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true
}Deletes a cached view query. This is idempotent — it returns success even if the query doesn’t exist or has already expired.Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11