By Jetformat
List comments first and use the reported comment ID. Work on a new output file so the review history in the original remains available.
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-comment report.docx --id 0 -o reviewed.docx
Options for this task
| Option | Meaning |
|---|---|
--id |
Comment ID |
--output |
Output DOCX path (required) |
Check the result
Run word comments on the output and confirm that only the intended comment disappeared.
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-comment --help to compare options with your installed version.
See the word command reference for the surrounding workflow.