Google Docs Batch Update icon

Google Docs Batch Update

Build and send Google Docs batch update requests

Create Document Request → Delete Content Range

AI-generated

Summary

Deletes a range of content in a Google Document.

Inputs

  • startIndex (required) — Zero-based index in UTF-16 code units, relative to the beginning of the segment specified by segmentId.
  • endIndex (required) — Zero-based index in UTF-16 code units, relative to the beginning of the segment specified by segmentId.
  • additionalLocationFields — Additional fields for the end of segment location. When omitted, the request applies to the document body or first tab depending on segmentId and tabId values.

Output shape

The operation returns the result of the Google Docs Batch Update API call, typically confirming the request was applied. Specific return data is not defined in the node's declared properties.

The Google Docs API deleteContentRange request removes characters from startIndex up to (but not including) endIndex within the specified segment and tab.

Links

Discussion