Skip to main content
Participant
November 4, 2021
Question

Deleting all comments at once on a PDF (DC)?

  • November 4, 2021
  • 1 reply
  • 417 views

Hey Folks, does anyone have a solution for deleting all comments at once - I have a document with over 300 comments and I don't want to delete them individually, is there an option to delete all at the same time?

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 4, 2021

Open the Comments panel, click into the comments list, press Ctrl+A, press Delete.

Alternatively, you can run this code from the JS Console or even as an Action or Custom Command:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
	for (var i=annots.length-1; i>=0; i--) {
		annots[i].destroy();
	}
}