Delete Rows
delete_rowsPermanently removes a specified range of rows from a sheet tab, moving lower rows up. Specify the starting row and number of rows to delete.
Instructions
Permanently deletes a contiguous block of rows from a sheet tab, shifting the rows below upward. Deletes count rows (default 1) starting at the 1-based start_row. Destructive — cannot be undone via the API.
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": {
"spreadsheet": "<spreadsheet>",
"sheet_name": "<sheet_name>",
"start_row": "<start_row>"
},
"name": "delete_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of consecutive rows to delete, starting at start_row (default 1) | |
| start_row | Yes | 1-based index of the first row to delete | |
| sheet_name | Yes | Target sheet tab name | |
| spreadsheet | Yes | Target spreadsheet: a full Google Sheets URL (https://docs.google.com/spreadsheets/d/<ID>/edit...) or a bare spreadsheet ID |