delete_records
Delete records from any Odoo model by specifying the model name and a list of record IDs.
Instructions
Delete records from an Odoo model.
Args:
model: The Odoo model name (e.g. "res.partner").
ids: List of record IDs to delete.
Returns:
True if the deletion succeeded.
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": {
"model": "<model>",
"ids": "<ids>"
},
"name": "delete_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |