data_delete_row
Delete a row by _id — or a BATCH of rows with ids, in one call.
datastore accepts slot:<name> (active project).
expected_revision = the _revision of the row as you read it, when it is
that read that made you decide to delete. If the row changed since (any
column, or its reservation), nothing is deleted and the call is refused.
Omit it when you delete a row you did not have to read first.
BATCH (ids, up to 500): each item is an _id, or
{"id": …, "expected_revision": …} to guard that row. Each row is deleted
on its own: one refused row (changed since read, reserved by another work)
does not stop the others. Returns deleted, not_found and refused
(id, error, current_revision on a conflict). A malformed item refuses
the whole call before anything is deleted.
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": {
"datastore": "<datastore>"
},
"name": "data_delete_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ids | No | ||
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| datastore | Yes | ||
| expected_revision | No |