delete_database
Delete a database and all its rows only after explicit confirmation, moving the folder to workspace trash for 30 days so it can be restored.
Instructions
Delete a database and all its rows. Blocked unless confirm is true (the error reports how many rows would be lost). Recoverable: the folder is moved to the workspace trash and the result reports trashPath (.hillnote/trash//…, kept 30 days) — restore_from_trash puts it 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_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually delete — this removes the database folder, its config, views, and every row (to the workspace trash) | |
| workspace | Yes | Workspace path or name | |
| databasePath | Yes | Path to the database folder (relative to documents folder) |