GenOffice docx delete blocks
genoffice_docx_deleteRemove selected paragraphs or headings from a .docx file while preserving the original byte formatting of all remaining blocks, writing results to a new output file.
Instructions
Delete one or more top-level blocks (paragraphs/headings) from a .docx using the GenOffice byte-preserving roundtrip: the deleted blocks are spliced out, all remaining blocks keep their original bytes. Indexes come from genoffice_docx_blocks (0-based visible order). Writes a NEW file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source .docx (never modified) | |
| indexes | Yes | Block indexes to delete (from genoffice_docx_blocks) | |
| outPath | No | Absolute output path; defaults to <dir>/<name>.deleted.docx |