How to Unlock or Delete Locked Comments in Adobe Acrobat 8
Question details
The user needs to unlock or remove comments from a PDF report that cannot be deleted manually.

- Product
- Adobe Acrobat 8
- Device & OS
- not provided
- Scenario
- Attempting to clean up annotations in a PDF report generated after using the Compare Documents feature.
- Observed behavior
- The generated comments appear permanently locked and cannot be unlocked or deleted, even though no specific lock property is enabled.
Verify that you have the necessary permissions to edit the document by checking the Document Properties, as PDF security restrictions set by the author can prevent comment removal.
Use Acrobat JavaScript to Unlock or Destroy Comments
Execute a simple JavaScript code snippet in the Acrobat console to force the read-only status of all comments to false, or to delete them entirely.
Because Adobe Acrobat 8 is an older, unsupported application, it occasionally experiences bugs where comments generated by the 'Compare Documents' tool become permanently locked. You can bypass this UI bug using Acrobat's built-in JavaScript debugger.
Open your PDF document in Acrobat 8 and press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console.
To unlock the comments, type the following code into the console window: var aAnnots = this.getAnnots(); for (var i = 0; i < aAnnots.length; i++) { aAnnots[i].readOnly = false; }
Highlight the code you just pasted and press 'Enter' on your numeric keypad (or 'Ctrl + Enter' on standard keyboards) to run the script.
If you just want to destroy the comments entirely, use this script instead: this.syncAnnot(); var annots = this.getAnnots(); if (annots != null) { for (var i = annots.length - 1; i >= 0; i--) { annots[i].destroy(); } }

Check and Modify Document Security Permissions
Ensure the document is not protected by security settings that restrict commenting or editing capabilities.
Delete via the Comments Pane
Use the built-in comments list pane to batch select and force-delete the annotations.
Easily Manage and Delete PDF Comments with WPS Office
Avoid the bugs and complexities of outdated software like Adobe Acrobat 8. WPS Office provides a modern, intuitive, and highly compatible PDF editor that lets you easily manage, unlock, and delete comments without relying on JavaScript code.
- 1. Open your PDF: Launch WPS Office and open your PDF file using the built-in WPS PDF tool.
- 2. Go to the Comment tab: Navigate to the 'Comment' tab located on the top ribbon menu.
- 3. Open the Comment List: Click on the 'Comment List' icon to expand the annotations pane on the left side of your screen.
- 4. Delete comments: Select the comments you wish to remove from the list, right-click, and choose 'Delete' to instantly clear them from your document.

Frequently Asked Questions
Why do comments become locked after comparing documents in Acrobat 8?
Acrobat 8 is an older, unsupported application. Bugs in its 'Compare Documents' feature can cause the automatically generated report annotations to become permanently locked, even when the lock property is not explicitly enabled by the user.
Can I remove security restrictions blocking me from deleting comments?
Yes, if you have the required permissions password. Go to Document Properties > Security tab to check restrictions, enter the password provided by the creator to unlock editing, and save the document before attempting to delete the comments.
Is Adobe Acrobat 8 still supported for security updates?
No, Adobe Acrobat 8 is obsolete and no longer receives updates, bug fixes, or security patches. It is highly recommended to upgrade to a modern PDF editor like WPS Office for improved security and functionality.
Can I delete all comments at once in a PDF?
Yes. You can open the Comments List or Comments Pane in your PDF editor, select all comments by pressing 'Ctrl + A' (or 'Cmd + A' on Mac), and press the 'Delete' key to remove them simultaneously.




