Delete data
delete_dataDelete records by id or WHERE condition. Returns the count of deleted records. System records (e.g. the built-in user groups) are never 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": {
"table": "<table>"
},
"name": "delete_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Delete a single record by id (e.g., '42'). Either 'id' or 'conditions' must be provided. | |
| table | Yes | Table name, e.g. ng_invoice. | |
| history | No | Record the deletion in the change history and let it take part in synchronization, exactly as a deletion made in the user interface does; the records are then deleted one by one. Default false — the deletion itself is not recorded in the history and is not synchronized. Deleting a rights group clears it in the users who had it, and that change of the users is recorded in the history and synchronized either way. | |
| conditions | No | Delete multiple records by WHERE condition (without the WHERE keyword). String values use plain single quotes ('Archived'); write dates between # # (e.g. #2020-01-01#). Subqueries are not allowed. Example: ng_status = 'Archived' AND ng_datum < #2020-01-01#. Either 'id' or 'conditions' must be provided. |