Google Docs Batch Update icon

Google Docs Batch Update

Build and send Google Docs batch update requests

Create Tables Request → Delete Table Column

AI-generated

Summary

Removes a column from a Google Docs table within the specified location.

Inputs

  • index (required) — The zero-based index of the column to delete, in UTF-16 code units, relative to the beginning of the segment specified by segmentId.
  • columnIndex — The zero-based index of the column to delete. Defaults to 0.
  • segmentId — The ID of the header, footer, or footnote containing the table. An empty string signifies the document's body.
  • tabId — The ID of the tab containing the table. When omitted, the request applies to the first tab.

Output shape

a single success item (execution result)

Executes a batch update request; returns a success item if the request is valid.

Examples

Example 1: Delete the first column of a table in the document body.

index=0, segmentId=''

Example 2: Delete a specific column in a table located in a specific tab.

index=2, tabId='tab_12345'

Links

Discussion