Delete Table Row
delete_table_row · Tools · Tables
Delete one row from a table
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
row_id | string | Yes | Id of the row to delete, as returned by query_table or get_table_row |
table_id | string | Yes | The table's id or slug, as list_tables gives them; the slug aliases the id and either is accepted. |
Delete Table Row Tool#
Deletes one row from a table.
When to Use#
Use this to remove a single record. Row ids come from query_table and get_table_row; there is no
filter form, so removing several rows is several calls, each naming the row it deletes.
To empty a table entirely, delete_table is one call rather than one per row — but it takes the
table with it.
There is no trash for table rows. Confirm with the user before calling it.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
table_id |
string | Yes | The table's id or slug, as list_tables gives them; the slug aliases the id and either is accepted |
row_id |
string | Yes | Id of the row to delete |
Returns#
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether the deletion succeeded |
deleted |
boolean | Always true |
table_id |
string | The table the row was in |
row_id |
string | The row that was deleted |
Notes#
- A row id that does not exist is an error, not a silent success, so a mistyped id is visible rather than looking like a completed delete.
- Refused when the table denies AI writes.
- A row tool composed over one table (
{prefix}_remove) is the same delete, scoped to that table.