deleteChart
Removes a chart from a Google Spreadsheet using its numeric chart ID. Pass the ID returned when the chart was created to delete the correct chart.
Instructions
Deletes a chart from a Google Spreadsheet by chart ID. The chart ID is returned when a chart is created with insertChart.
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>",
"chartId": "<chartId>"
},
"name": "deleteChart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chartId | Yes | The numeric chart ID to delete. | |
| 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. |