By Jetformat
Paragraph positions are 1-based and change after edits. Inspect the current file before deleting; reusing an old index can target different content.
Steps
- Start with a local DOCX. Replace the sample paths and identifiers with your own.
- Run the command below. Save to a new output path so the source remains available for comparison.
- Check the result as described below before using it in another job.
jetformat word remove-paragraph report.docx --paragraph 2 -o report-updated.docx
Options for this task
| Option | Meaning |
|---|---|
--output |
Output DOCX path (required) |
--paragraph |
1-based paragraph number (default 1) |
Check the result
Extract text from the output and check the neighboring paragraphs as well as the removed text.
Notes and limits
Writing an Office document uses one credit per command. See the billing guide for the current rules.
The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat word remove-paragraph --help to compare options with your installed version.
See the word command reference for the surrounding workflow.