delete_record
Delete records from an Odoo model with a two-step safety confirmation: first call with confirm=False to preview deletions, then confirm=True only 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name (e.g., 'res.partner') | |
| ids | Yes | List of record IDs to delete | |
| confirm | No | Safety flag. Always call with False first, then True only after user approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |