Delete sheet
delete_sheetDelete a worksheet and all of its contents from an Excel file, with a safeguard that refuses removal when it is the only remaining sheet.
Instructions
Delete a sheet and everything on it. Refused when it is the only sheet.
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": {
"sheet": "<sheet>"
},
"name": "delete_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| sheet | Yes | Sheet to delete. | |
| backup | No | Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true). | |
| reason | No | Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||