Cost Locations: delete cost location
cost_locations_deletePermanently delete a cost location that is no longer needed. Use this action to remove obsolete cost centers; it cannot be undone.
Instructions
๐ด DESTRUCTIVE ยท deletes data: Deletes or cancels a record. Confirm with the user before calling. Receipt deletes are restorable; cost-location deletes are not. Cancelling a posting deletes it if it is not yet fixed, otherwise it books a reversal posting.
delete cost location
Delete a cost location.
Use to remove a cost centre that is no longer needed.
Permanent. Unlike a deleted receipt there is no restore endpoint, so confirm with the user before calling.
Endpoint: POST /cost-locations/delete
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": {
"code": "<code>"
},
"name": "cost_locations_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The cost location code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | blank | |
| success | Yes | Success boolean |