delete_sheet
Remove a specific sheet from an Excel workbook. Ensures at least one sheet remains, preventing deletion of the last sheet.
Instructions
Delete a sheet from a workbook. Fails if it is the only sheet left.
Args: path: Path to the .xlsx file, or the name of a preloaded file. Omit if only one file is configured. sheet: Sheet name to delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| sheet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||