remove_block
Permanently deletes a specified block and its children from the Logseq graph using its unique block ID. Ensure the block ID is obtained from functions like get_page_blocks(), get_block(), or search_blocks(). This action is irreversible.
Instructions
Removes a block from the Logseq graph.
This operation permanently removes the specified block and all its children.
This action cannot be undone.
To remove a block, you need its block ID, which can be obtained from:
- get_page_blocks() function
- get_block() function
- search_blocks() function
Args:
block_id (str): The ID of the block to remove.
Returns:
dict: Result of the removal operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
block_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"block_id": {
"title": "Block Id",
"type": "string"
}
},
"required": [
"block_id"
],
"title": "remove_blockArguments",
"type": "object"
}