How to Batch Remove Annotations from PDFs in a Folder
Question details
The user needs a method to automatically delete all annotations and comments from multiple PDF files located within a specific folder.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Cleaning up multiple annotated PDF documents simultaneously without opening and editing each one manually.
- Observed behavior
- The user is looking for an automated workflow or tool to clear all markups across a directory of PDFs to save time.
Always create a backup copy of your entire PDF folder before running any batch scripts, as removing annotations permanently alters the documents and cannot be undone.
Use Action Wizard and JavaScript in Adobe Acrobat Pro
Automate annotation removal across an entire folder using a custom JavaScript action in Acrobat Pro.
This method requires Adobe Acrobat Pro DC, as the Action Wizard tool is not available in the free Acrobat Reader DC. It uses a JavaScript command to identify and delete all interactive annotations within the document before saving.
Launch Adobe Acrobat Pro DC, navigate to the 'Tools' tab, and click on 'Action Wizard' to manage your automated processes.
Click 'New Action' in the top toolbar to begin building your custom batch process.
Under 'Files to be Processed' on the left side, click 'Add Folder' and select the directory containing your annotated PDFs.
In the 'Choose tools to add' panel, expand 'More Tools' and click 'Execute JavaScript'. Click the '+' button to add it to your action steps on the right.
Click 'Specify Settings' on the newly added JavaScript step and paste the following code: this.syncAnnotScan(); var annots = this.getAnnots(); if (annots != null) { for (var i = annots.length - 1; i >= 0; i--) { annots[i].destroy(); } }
Expand 'Save & Export', add the 'Save' command to your action steps to ensure changes are kept, then save the Action and click 'Start' to process the folder.

Use a Dedicated Batch Cleaning Tool
For users without Acrobat Pro or those who prefer a graphical interface over scripts, third-party utilities can clear annotations.
Manage and Clear PDF Annotations Easily with WPS Office
While complex JavaScript batching requires expensive Pro subscriptions, WPS Office provides a lightweight, highly intuitive PDF editor. You can instantly view, manage, and delete all comments or annotations in your documents for free.
- 1. Open Your PDF: Launch WPS Office and open your annotated PDF document.
- 2. Access the Comment Panel: Navigate to the 'Comment' tab located on the top ribbon menu.
- 3. View Comment List: Click on 'Comment List' to open the side panel displaying all annotations, highlights, and notes.
- 4. Clear Annotations: Select the comments you wish to remove (or select all) and click the 'Delete' icon to instantly clear the document.

Frequently Asked Questions
Can I recover annotations after batch deleting them with an Action?
No, once an automated batch process or JavaScript destroys the annotations and saves the file, the data is permanently removed. You should always run batch tools on copies of your original files.
Why is the Action Wizard missing in my Adobe Acrobat?
The Action Wizard tool is an exclusive feature of Adobe Acrobat Pro DC. If you are using the free Acrobat Reader DC or the Standard version, you will not be able to access or create batch actions.
Will removing annotations also remove text watermarks?
Generally, no. Annotations like highlights, sticky notes, and stamps are interactive objects layered on top of the PDF. Flattened watermarks or base text are part of the document's core content and will not be removed by standard annotation scripts.
How do I delete all comments from a single PDF without scripts?
In capable PDF editors like WPS Office or Acrobat, you can open the Comment pane, select all comments by clicking one and pressing Ctrl+A (or Cmd+A on Mac), and press the Delete key to instantly clear them.




