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.
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 |