excel_delete_sheet
Delete a specific sheet from an Excel workbook. Ensures at least one sheet remains.
Instructions
Remove a sheet from the workbook.
Refuses to delete the last remaining sheet
(VAL-EXCEL-036 / VAL-EXCEL-037): the workbook must
always have at least one sheet.
Args:
path: Path to an existing .xlsx.
name: Name of the sheet to delete.
folder: Optional base folder for relative paths.
Returns:
{"ok": True}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the file is
missing, ERR_SHEET_NOT_FOUND for an unknown sheet,
ERR_INVALID_PARAMS when the target is the only
remaining sheet, ERR_UNSUPPORTED_FMT for non-.xlsx
extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| name | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||