Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Delete an entire block node (paragraph, heading, list item, table, image, or sdt) deterministically.
  • Operation ID: blocks.delete
  • API member path: editor.doc.blocks.delete(...)
  • Mutates document: yes
  • Idempotency: conditional
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a BlocksDeleteResult receipt confirming the block was removed from the document.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • AMBIGUOUS_TARGET
  • CAPABILITY_UNAVAILABLE
  • INVALID_TARGET
  • INVALID_INPUT
  • INTERNAL_ERROR

Non-applied failure codes

  • None

Raw schemas