Delete Record
delete_recordPermanently removes records from an Odoo model. Requires a two-step confirmation: preview with confirm=False, then confirm=True after user approval.
Instructions
Delete records from an Odoo model. IRREVERSIBLE operation.
IMPORTANT: You MUST first call with confirm=False to show the user what will be deleted. Only set confirm=True AFTER the user explicitly approves the deletion. NEVER set confirm=True on the first call.
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_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | List of record IDs to delete | |
| model | Yes | Model name (e.g., 'res.partner') | |
| confirm | No | Safety flag. Always call with False first, then True only after user approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |