Skip to content

Delete Annotations

Delete single/multiple annotations using the deleteAnnotations method. Acceptable parameters:

  • Single annotation object;
  • A one-dimensional array composed of multiple annotation objects;
javascript
const annotationManager = docViewer.getAnnotationManager()
const annotationsList = annotationManager.getAnnotationsList()
annotationManager.deleteAnnotation(annotationsList[0])
annotationManager.deleteAnnotations(annotationsList)