SiYuan icon

SiYuan

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

Asset → Remove File

AI-generated

Overview

This node operation removes a file from the SiYuan workspace based on the specified file path. It is useful for managing and cleaning up files within the SiYuan environment, such as deleting outdated or unnecessary assets like images or documents.

Use Case Examples

  1. Deleting an image file from the workspace to free up storage.
  2. Removing a document file that is no longer needed in a project.

Properties

Name Meaning
File Path The path of the file within the SiYuan workspace to be removed.

Output

JSON

  • success - Indicates whether the file removal operation was successful.

Dependencies

  • Requires SiYuan API URL and API token credentials for authentication.

Troubleshooting

  • Ensure the file path is correct and the file exists in the SiYuan workspace to avoid errors.
  • Verify that the API URL and token credentials are correctly set and valid.
  • If the node throws an unsupported resource error, confirm that the resource parameter is set to 'asset' and operation to 'removeFile'.

Discussion