in_trash property to true. Deleting a block also affects its children - they will inherit the parent’s trash status.
Method Signature
Parameters
string
required
The ID of the block to delete
string
Optional authentication token to override the client-level auth
Response
Returns the deleted block as aBlockObjectResponse or PartialBlockObjectResponse with in_trash set to true.
string
Always
"block"string
The block ID
boolean
Always
true after deletionboolean
Archived status of the block
string
Timestamp when the block was deleted
PartialUserObjectResponse
User who deleted the block
Examples
Delete a Block
Delete Multiple Blocks
Delete with Confirmation
Delete and Log Details
Conditional Deletion
Restoring Deleted Blocks
You can restore a deleted block by updating itsin_trash property:
Important Notes
Deleting a block with children will also move all child blocks to trash. Child blocks inherit the parent’s trash status.
Deleting a child page or child database block will move the entire page or database and its contents to trash.
Error Handling
Bulk Deletion with Error Handling
Differences from Archive
Deletion (in_trash: true) and archival (archived: true) are different:
When to use archived vs in_trash
When to use archived vs in_trash
- Archive (
archived: true) - Use for blocks you want to hide but keep indefinitely. Archived blocks stay archived until manually unarchived. - Delete (
in_trash: true) - Use for blocks you intend to permanently remove. Trashed blocks are auto-deleted after 30 days.
Related
- Update a Block - Restore blocks from trash
- Retrieve a Block
- Append Block Children
- Error Handling Guide