When summarizing, translating, archiving, or submitting multiple Word documents, you often need to uniformly delete paragraphs containing fixed keywords, such as Annex A, Annex B, Annex C, internal notes, old descriptions, etc. Manually opening each .docx or .doc file to delete paragraphs one by one is very inefficient. This article, combined with the interface of HeSoft Doc Batch Tool , explains how to use the "Find and replace complete paragraphs in Word based on keywords" feature to batch import multiple Word files, set precise search text, leave the replacement content blank, and thus delete all complete paragraphs containing specified keywords. It also introduces key inspection points and pitfalls to avoid during the operation.
When processing a large amount of Word documents, the most troublesome part is often not complex formatting, but the large number of repetitive cleaning tasks. For example, a batch of docx documents all contain attachment directories, with paragraphs like "Annex A," "Annex B," and "Annex C" in each file, but the final version only needs to retain other content. Or, multiple doc files contain text like "Internal Notes," "Draft Notes," or "Legacy Clause," which need to have their paragraphs deleted before being sent out. Opening, searching, selecting paragraphs, deleting, and saving file by file is not only time-consuming but also prone to omissions.
This article introduces a more suitable approach for office batch processing: using HeSoft Doc Batch Tool to search for complete paragraphs by keyword in multiple Word files and batch delete the matching paragraphs. Compared to Word's built-in find, this method is better suited for scenarios with many files and consistent rules. Compared to plain text replacement, it focuses on "paragraph-level" processing, capable of deleting entire paragraphs containing the keyword, rather than just removing a few characters.
Use Cases: Batch Cleaning Fixed Paragraphs in docx/doc Documents
Batch deleting Word paragraphs by keyword is suitable for many office roles. Administrative staff can use it to clean out internal notes in meeting materials. Legal or business professionals can batch delete old clauses from contract templates. Bidding staff can remove placeholder prompts in proposals. Teachers, researchers, or editors can clean up attachment indexes in compiled materials. Translation and localization teams can also delete non-deliverable note paragraphs from source files.
The common characteristics of such tasks are: first, more than one document is involved; second, the content to be deleted contains clear keywords; third, the deletion scope is usually an entire paragraph, not a single word; fourth, it's necessary to keep unmatched content unchanged. HeSoft Doc Batch Tool , as batch processing software for office files, is perfectly suited to centralize these repetitive operations, avoiding users having to repeatedly switch between multiple Word windows.
Result Preview: The Word file before processing contains the attachment paragraphs to be deleted
In the pre-processing screenshot, the Word document displays the "Annexes" section, where "Annex A," "Annex B," and "Annex C" are highlighted with red boxes. This content is located in different paragraphs, each followed by corresponding descriptive text. If only the characters "Annex A" were deleted using a simple replacement, the subsequent descriptive text would remain, leaving the document structure messy. Therefore, the goal of this processing is to delete the complete paragraphs containing these keywords.

For a single file, manual deletion might only take a few minutes. But if there are 5, 50, or even more similar files, the cost of manual cleaning increases rapidly. More importantly, manual operation relies on attention, and a lapse in focus could easily miss an instance of "Annex B" or accidentally delete an adjacent paragraph.
Result Preview: Matching paragraphs have been deleted after processing
In the post-processing screenshot, the paragraphs containing "Annex A," "Annex B," and "Annex C" have disappeared, leaving only "Annex D -- Free sugars and total sugars." This shows that the software completed paragraph-level deletion according to the keyword rules: paragraphs matching the keywords were deleted, and unmatched paragraphs were retained.

This result also indicates that keyword setup is very important when batch deleting Word paragraphs. If you only want to delete some attachments, do not fill in an overly broad term like "Annex." Instead, use specific matching text like "Annex A," "Annex B," "Annex C" to make the results closer to expectations.
Operation Steps: Batch Deleting Entire Paragraphs Containing Specified Keywords
Step 1: Find the Paragraph Find and Replace function in the Word tools
After launching HeSoft Doc Batch Tool , you can see categories on the left side such as "Home," "Task Flow," "All Tools," "Word Tools," "Excel Tools," "PowerPoint Tools," and "PDF Tools." Since the processing target is Word documents, navigate to "Word Tools." In the feature list, select "Find and Replace Full Paragraphs in Word by Keyword."

From the interface description, you can see that this function is used for batch deleting or replacing entire paragraphs in Word files containing a specific keyword with new text. That means it can perform both "paragraph replacement" and "paragraph deletion." This tutorial uses the deletion mode, which only requires leaving the replacement content field empty later on.
Step 2: Add or import the Word files to be processed
After entering the function, the process steps are displayed at the top of the page: Select Records to Process, Set Processing Options, Set Save Location, Start Processing. First, import files under "Select Records to Process." The upper right corner of the interface provides two common entry points: "Add Files" and "Import Files from Folder." If you only have a few files to process, use "Add Files." If all files are in the same directory, using "Import Files from Folder" saves more time.

In the screenshot, 5 docx files have been imported into the list, named 1.docx, 2.docx, 3.docx, 4.docx, 5.docx, with their paths shown under the D drive test directory. The list also shows the extension, creation time, and modification time, making it easy for users to verify the processing scope. After importing, it's recommended to check three points: Is the file count correct? Are the paths correct? Are the extensions the Word formats that need processing? If files are added by mistake, they can be removed via the delete button in the action column, or you can use "Clear" to reselect.
Step 3: Select exact search and fill in keywords
Clicking "Next" enters the "Set Processing Options" step. Under "Search Method," the interface offers "Exact Text Search" and "Use Formula for Fuzzy Text Search." When you want to delete specific text like Annex A, Annex B, Annex C, it is recommended to choose "Exact Text Search." This method is intuitive, easy to verify, and more suitable for most batch cleaning tasks.

Then, enter the keywords in the "Keyword List to Search." In the screenshot, there is one keyword per line, namely Annex A, Annex B, and Annex C. The advantage of listing them one per line is that the rules are clear, and it's easier to adjust later if you need to add or remove a target. For Chinese documents, you can fill in keywords like "Internal Notes," "For Reference Only," or "Legacy Description" in the same way.
The "Replacement Keyword List" area on the right is critical; the interface prompts that "leaving it blank means deletion." Therefore, if your goal is to delete matching paragraphs, do not fill in replacement text in the right column. When processing, the software will search for complete paragraphs containing the left-side keywords and, because the right side is empty, remove these paragraphs. This logic can be simply understood as: the left side is the location condition, the right side is the replacement result; if the right side is empty, the result is deletion.
Step 4: Set additional options based on the document situation
Above the keyword setting area, you can see additional options like "Ignore case" and "Match whole word only." In English materials, if the same keyword might be written as "Annex A," "annex a," or "ANNEX A," you can consider ignoring case based on the actual situation. If you are concerned about keywords appearing within longer words causing incorrect matches, pay attention to the match whole word option.
However, any additional option should serve accuracy. Once a batch deletion rule is set improperly, the impact will affect multiple files simultaneously. Therefore, it is recommended to test with a small number of sample documents first and confirm that the deletion results meet expectations before executing the batch process on the entire folder.
Step 5: Set the save location and execute processing
After completing the processing options, proceed to "Set Save Location." Although the interface screenshot does not show the details of this step, it's clear from the process name that this step is for determining the save location for the processed files. For safety reasons, it is recommended to save the results to a new directory rather than directly overwriting the original documents. This way, even if there is an error in the keyword settings, you can go back to the original files and reprocess them.
Finally, proceed to "Start Processing." The software will read the Word documents one by one from the file list, find the complete paragraphs containing the keywords, and delete these paragraphs. Once processing is complete, open the output files for checking, focusing on whether the positions originally containing Annex A, Annex B, and Annex C have been cleaned up, and simultaneously confirm whether content like Annex D, which was not in the keyword list, has been retained.
Frequently Asked Questions and Notes
Can I enter multiple keywords at once?
Yes. As seen in the screenshot, the "Keyword List to Search" supports entering multiple keywords line by line. It is recommended to put one keyword per line, as this is easier to maintain and verify if rules are written incorrectly before processing.
What if I only want to delete the keyword, not the entire paragraph?
The focus of the function introduced in this article is processing "complete paragraphs." If your goal is just to replace or delete a specific word itself, you should choose a function more suitable for general text find and replace, not a paragraph-level processing function. Clarify the processing scope before selecting a function.
Why is backing up necessary before processing?
The biggest advantage of batch processing is high efficiency, but that also means the rules will affect multiple files simultaneously. If you discover that the keywords were set too broadly after paragraphs are deleted, recovery would be quite troublesome. Therefore, it is recommended to keep the original files or at least output the processing results to a new folder.
Are shorter keywords always better?
No. The shorter the keyword, the higher the risk of incorrect matches. For example, entering only "A" is clearly unsuitable; entering only "Annex" might also delete all attachment paragraphs. Try to fill in text that is specific enough to represent the target paragraphs.
Summary: Transforming docx/doc Paragraph Cleaning from Manual to Batch
Batch deleting Word paragraphs containing keywords is a very typical efficiency improvement requirement in office scenarios. Using HeSoft Doc Batch Tool , users can import multiple docx and doc files into one task, set the keywords to search for, and utilize the rule that "empty replacement content equals deletion" to clean up all matching paragraphs at once.
If you are spending time dealing with attachment paragraphs, outdated descriptions, internal notes, or residual template content in a large number of Word files, you can prepare a few sample documents for testing by following the steps in this article. Once confirmed that the before-and-after results are correct, proceed to batch process the entire folder. This ensures document quality while letting the office software automatically handle a large volume of repetitive deletion operations.