删除工作表
delete_sheetDeletes a specified worksheet from an Excel or CSV file by providing the file path and sheet name. Removes unwanted sheets while protecting the last remaining sheet from deletion to prevent data loss.
Instructions
删除指定工作表。不能删除最后一张。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Excel 文件的绝对路径,例如 `C:\Users\xx\报表.xlsx` 或 `/Users/xx/报表.xlsx`。支持 .xlsx / .xls / .csv | |
| sheetName | Yes | 工作表名称,1~31 个字符,不能包含 [ ] : * ? / \ |