SiYuan icon

SiYuan

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

Asset → Remove File

AI-generated

Summary

Delete a file or directory from the SiYuan workspace at the specified path.

Inputs

  • File Path (required) — The path of the file within the SiYuan workspace to be removed. Must start with a slash (e.g., /data/assets/image.png).

Output shape

no body — success/failure only

Returns null upon successful deletion. Throws an error if the file path does not exist or the operation fails.

Links

Discussion