delete_rows
Delete rows from a dataset by ID or filter. Preview affected rows first; set confirm=true to permanently remove them after user approval.
Instructions
Delete rows by explicit ids, or in bulk for every row matching a filter.
Destructive: without confirm=true the tool only returns a preview listing the rows that would be deleted. Call it with confirm=false first, tell the user what will be lost, and only re-invoke with confirm=true after they agree.
Args: dataset: Exact dataset name, e.g. "Candidates". row_ids: Explicit row ids to delete, e.g. ["4"]. Mutually exclusive with conditions. conditions: Filter selecting rows to delete, e.g. [{"column": "experience", "op": "lt", "value": 2}]. confirm: Must be true to actually delete (default false = preview only).
Returns: {"ok": true, "dataset", "deleted": , "row_ids": [...], "not_found": [...]} after confirmation, {"ok": true, "requires_confirmation": true, "preview": {...}} without.
Example: delete_rows(dataset="Candidates", conditions=[{"column": "stage", "op": "eq", "value": "Rejected"}])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dataset | Yes | ||
| row_ids | No | ||
| conditions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||