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.delete({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"type": "<string>",
"database_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Delete a view from a database.
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.views.delete({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"type": "<string>",
"database_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Deletes the specified view. The last remaining view on a database cannot be deleted — delete the database instead. For dashboard views, deleting the dashboard also archives all of its widget views.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 The ID of the view to delete.
The object type name.
"view"The ID of the view.
The parent database of the view.
Show child attributes
The view type.
table, board, list, calendar, timeline, gallery, form, chart, map, dashboard