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.blocks.delete({
block_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.blocks.delete({
block_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Sets a Block object, including page blocks, toDocumentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
in_trash: true using the ID specified. In the Notion UI application, this moves the block to the “Trash” where it can still be accessed and restored.
To restore the block with the API, use the Update a block or Update page respectively.
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