Actions40
- Create Bullets Request Actions
- Create Document Request Actions
- Create Headers & Footers Request Actions
- Create Images Request Actions
- Create Named Ranges Request Actions
- Create Tables Request Actions
- Create Tabs Request Actions
- Create Text Request Actions
- Send Request Actions
Create Tables Request → Delete Table Row
AI-generatedSummary
Deletes a specific row from a Google Docs table, targeting a precise location within the document or a specific tab.
Inputs
- index (required) — The zero-based index, in UTF-16 code units, relative to the beginning of the segment specified by segmentId.
- rowIndex — The zero-based index of the row to delete within the table.
- additionalLocationFields — A collection of optional fields to refine the location of the table row. Includes Segment ID (header/footer/footnote) and Tab ID.
Output shape
no body — success/failure only
The operation returns a success status if the request is valid; it does not return the modified document or a list of items.
Examples
Example 1: Deleting a row from a table in the main document body.
Set index to the table's start index, rowIndex to the row to delete, and segmentId to empty string.
Example 2: Deleting a row from a table within a specific tab.
Set index and rowIndex, and provide the tabId in additionalLocationFields.