Delete block
Deletes block by ID
Function DeleteBlock(Val Token, Val BlockID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
BlockID | --block | String | ✔ | Block ID |
Returns: Map Of KeyAndValue - serialized JSON response from Notion
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Block = "26e82aa7-fc4e-812c-bec3-d1fa985f2e25";
Result = OPI_Notion.DeleteBlock(Token, Block);
- Bash
- CMD/Bat
oint notion DeleteBlock \
--token "***" \
--block "26f82aa7-fc4e-8146-8516-cd6b21cae2b2"
oint notion DeleteBlock ^
--token "***" ^
--block "26f82aa7-fc4e-8146-8516-cd6b21cae2b2"
Result
{
"object": "block",
"id": "26f82aa7-fc4e-8146-8516-cd6b21cae2b2",
"parent": {
"type": "page_id",
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
},
"created_time": "2025-09-15T22:35:00Z",
"last_edited_time": "2025-09-15T22:35:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"has_children": false,
"archived": true,
"in_trash": true,
"type": "to_do",
"to_do": {
"rich_text": [
{
"type": "text",
"text": {
"content": "YoYO",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "YoYO",
"href": null
}
],
"checked": false,
"color": "default"
},
"request_id": "502c7666-15e7-46ba-93e6-3c70c6cd797d"
}