Google Docs Batch Update icon

Google Docs Batch Update

Build and send Google Docs batch update requests

Create Tables Request → Delete Table Row

AI-generated

Summary

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.

Links

Discussion