delete_rows
Remove database rows by ID or matching criteria; multi-row matches are blocked unless explicitly allowed, and deleted rows go to recoverable trash.
Instructions
Delete rows by ID (file path) or matching criteria. Failsafe: a "where" that matches several rows is blocked unless allowMultiple is true — prefer ids for single-row deletes. Recoverable: deleted row files are moved to the workspace trash (.hillnote/trash//…, kept 30 days) and each deleted row reports its trashPath — restore_from_trash puts a row back.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"databasePath": "<databasePath>"
},
"name": "delete_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Row IDs (file paths) to delete — the precise way to target rows. Preferred over "where". | |
| where | No | Criteria to match rows for deletion (e.g., {"status": "Archived"}), keyed by column ID. Matching more than one row is blocked unless allowMultiple is true. | |
| workspace | Yes | Workspace path or name | |
| databasePath | Yes | Path to the database folder | |
| allowMultiple | No | Explicitly allow this command to delete MORE than one row at once (default false — multi-row matches are blocked with a list of what matched) |