SiYuan icon

SiYuan

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

Markdown Table → Delete Row

AI-generated

Summary

Delete a row from a SiYuan Markdown table block by fetching its Kramdown, removing the indexed data row, and updating the block. The row index starts at 0 and excludes the header and separator rows.

Inputs

  • Table Block ID (required) — ID of the Markdown table block to edit.
  • Row Index (required) — Zero-based index of the data row to delete; the header row is excluded.

Output shape

A single record

Returns the tableBlockId, deletedRowIndex, and rowCount after deletion. An index outside the existing data rows causes an error; the table is updated in SiYuan when deletion succeeds.

Links

Discussion