PDF Editing Issues

How to Unlock or Delete Locked Comments in Adobe Acrobat 8

Tauseeq MagsiTauseeq Magsi Nov 2, 2026 869 views

Question details

The user needs to unlock or remove comments from a PDF report that cannot be deleted manually.

How to Unlock or Delete Locked Comments in Adobe Acrobat 8
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the JavaScript Debugger

Open your PDF document in Acrobat 8 and press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console.

2
Enter the unlock script

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

3
Execute the code

Highlight the code you just pasted and press 'Enter' on your numeric keypad (or 'Ctrl + Enter' on standard keyboards) to run the script.

4
Alternative: Delete all comments via 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(); } }

Use Acrobat JavaScript to Unlock or Destroy Comments
Save your document: After running the script, save and close the document, then reopen it to ensure the changes are permanently applied.
Manage PDF Comments Easily

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. 1. Open your PDF: Launch WPS Office and open your PDF file using the built-in WPS PDF tool.
  2. 2. Go to the Comment tab: Navigate to the 'Comment' tab located on the top ribbon menu.
  3. 3. Open the Comment List: Click on the 'Comment List' icon to expand the annotations pane on the left side of your screen.
  4. 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.
Free and intuitive PDF viewing and editingHighly compatible with all standard Adobe PDF formats and annotationsEasily manage, reply to, and batch-delete PDF commentsCross-platform support for Windows, Mac, Linux, and mobile devices
microsoft office alternative - wps office

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.