delete_records
Delete records from Odoo models with a dry-run preview to verify before actually deleting. Pass confirm=True to execute the deletion.
Instructions
Delete one or more records. Returns a preview unless confirm=True.
Deletes also require ODOO_ALLOW_DELETE=true on the server.
Args: model: Odoo model name (must be in ODOO_WRITABLE_MODELS). ids: Record ids to delete. confirm: Set True to actually delete; otherwise a dry-run preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| model | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |