Delete a manufacturing order
dolibarr_mo_deletePermanently deletes a manufacturing order after a preview step, without reversing posted stock movements. Requires confirm=true and a reason to execute.
Instructions
Deletes an MO permanently. Stock movements already posted on it are not reversed. This step cannot simply be undone: without confirm=true it only returns a preview.
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": {
"mo_id": "<mo_id>"
},
"name": "dolibarr_mo_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mo_id | Yes | ||
| reason | No | One line on why, kept in the audit log. Required when confirm is true. | |
| confirm | No | false (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step. |