delete_sheet
Delete an entire sheet from a Google Sheets spreadsheet. Dry-run mode (enabled by default) prevents accidental deletion, and a snapshot is created for restoration.
Instructions
Delete an entire sheet (destructive — dry_run defaults to TRUE).
The whole sheet's values (formulas preserved) and its properties are snapshotted so the sheet can be recreated. Formatting is not restored.
Args: spreadsheet_id_or_url: Full Sheets URL or bare spreadsheet ID. sheet: Sheet name OR gid string. dry_run: Defaults to TRUE. Pass false to actually delete. force: Allow deletion of sheets larger than the cell limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| sheet | Yes | ||
| dry_run | No | ||
| spreadsheet_id_or_url | Yes |