deleteTable
Deletes a table from a spreadsheet and removes its formatting while preserving cell data by default; optionally clears the table's data too.
Instructions
Deletes a table from a spreadsheet. By default, only removes the table object and formatting while keeping the cell data. Optionally clears the data as well. Modern deleteData calls require a readSpreadsheet handle that contains the table data range; data-preserving deletes use getSpreadsheetInfo.
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": {
"spreadsheetId": "<spreadsheetId>",
"tableIdentifier": "<tableIdentifier>"
},
"name": "deleteTable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleteData | No | If true, also clears the cell data in the table range. If false (default), only removes the table object and formatting. | |
| readHandle | No | Capability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. | |
| tableIdentifier | Yes | The table name or table ID to delete. Use listTables to see available tables. |