delete_record
Remove records from Odoo models using a two-step safety process: first preview deletions, then execute after user confirmation.
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.
Args: model: Model name (e.g., 'res.partner') ids: List of record IDs to delete confirm: Safety flag. Always call with False first, then True only after user approval.
Returns: JSON string with success status or pending confirmation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| ids | Yes | ||
| confirm | No |