PDF Editing Issues

How to Batch Remove Annotations from PDFs in a Folder

Ayan MasoodAyan Masood Nov 2, 2026 869 views

Question details

The user needs a method to automatically delete all annotations and comments from multiple PDF files located within a specific folder.

How to Batch Remove Annotations from PDFs in a 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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Action Wizard

Launch Adobe Acrobat Pro DC, navigate to the 'Tools' tab, and click on 'Action Wizard' to manage your automated processes.

2
Create a New Action

Click 'New Action' in the top toolbar to begin building your custom batch process.

3
Select Target Folder

Under 'Files to be Processed' on the left side, click 'Add Folder' and select the directory containing your annotated PDFs.

4
Add JavaScript Execution

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.

5
Insert the Cleaning Script

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(); } }

6
Add Save Command and Run

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 Action Wizard and JavaScript in Adobe Acrobat Pro
Test on Copies First: Run this Action on a folder of duplicated PDFs first to verify that only the intended annotations are removed without affecting the base content.
Effortless PDF Management

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. 1. Open Your PDF: Launch WPS Office and open your annotated PDF document.
  2. 2. Access the Comment Panel: Navigate to the 'Comment' tab located on the top ribbon menu.
  3. 3. View Comment List: Click on 'Comment List' to open the side panel displaying all annotations, highlights, and notes.
  4. 4. Clear Annotations: Select the comments you wish to remove (or select all) and click the 'Delete' icon to instantly clear the document.
Fully compatible with standard PDF formats and Adobe Acrobat files.One-click centralized management of all document comments and markup.Lightweight software that runs smoothly on standard computer hardware.Includes a comprehensive suite for Word, Excel, and PowerPoint alternatives.
QA img-9

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.