Google Docs Batch Update icon

Google Docs Batch Update

Build and send Google Docs batch update requests

Create Headers & Footers Request → Delete Header

AI-generated

Summary

Delete a header from a Google Docs document.

Inputs

  • headerId (required) — The ID of the header to delete.
  • additionalFields — Optional collection of extra fields to include in the delete request.
  • tabId — The tab containing the header to delete; if omitted, the request is applied to the first tab.

Output shape

success/failure only (empty response body)

Returns an empty response on success; errors are signaled by HTTP status codes.

Examples

Example 1: Delete a header using its ID from the default tab.

{"headerId":"hdr_123"}

Example 2: Delete a header from a specific tab and include extra fields.

{"headerId":"hdr_123","additionalFields":{"tabId":"2"}}

Links

Discussion