delete_xero_timesheet
delete_xero_timesheetProposes deleting ONE timesheet that is still a DRAFT in Xero Payroll, for Australian, New Zealand or United Kingdom organisations - for example a draft made for the wrong period or by mistake. It does NOT touch Xero itself, and never will on its own: this queues a pending change that a human must explicitly approve (your Xero MCP connector - the exact link is this response's own approvalUrl field); you have no way to approve it yourself. Only a DRAFT can be deleted: this refuses a timesheet that is approved, processed, completed, requested or rejected, and says which it is - such a timesheet has to be reverted or removed inside Xero by a person. The status is checked again when the human approves, so a timesheet approved in Xero in the meantime is not deleted. timesheetId must be a real Xero timesheet id - the id create_xero_timesheet returned once its draft was approved (the pending change's result), or one the user gives you; never invent one. This connector has no tool that lists timesheets. DELETING CANNOT BE UNDONE through this connector: once approved the timesheet and its hours are gone from Xero, and to get them back the timesheet must be drafted again. Tell the user which employee and period the timesheet is for (this response says) before they approve.
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": {
"timesheetId": "<timesheetId>"
},
"name": "delete_xero_timesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timesheetId | Yes | The Xero id of the DRAFT timesheet to delete - the id an approved create_xero_timesheet returned (its pending change result), or one the user gives you. Never invent one. | |
| organisation | No | The Xero organisation to use, by its display name. Only needed if this connection reaches more than one organisation - omit it when there is only one. |