SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Block → Delete

AI-generated

Overview

This node operation deletes a specific content block within a SiYuan document. It is useful for workflows that need to programmatically remove blocks of content, such as cleaning up outdated information or managing document structure dynamically.

Use Case Examples

  1. Deleting a block by its unique ID to remove obsolete content from a document.
  2. Automating document maintenance by removing blocks that meet certain criteria.

Properties

Name Meaning
Block ID The unique ID of the block to be deleted.

Output

JSON

  • success - Indicates whether the block deletion was successful.

Dependencies

  • SiYuan API URL and Token credentials are required for authentication.

Troubleshooting

  • Ensure the Block ID is correct and exists in the SiYuan workspace; otherwise, the deletion will fail.
  • Verify that the SiYuan API URL and Token credentials are properly set and valid to avoid authentication errors.
  • If the node throws an unsupported resource error, confirm that the resource parameter is set to 'block' and the operation to 'delete'.

Discussion