How I can remove annotations that are already on the document

WebViewer Version: 8.10.0

Is your issue related to annotations? Yes

Please give a brief summary of your issue:
I need to identify all annotations that are already in the document and remove it.
Could you help me, please?


You can use the following code to get / remove all annotations:

const {annotationManager} = instance.Core;
const allAnnots = annotationManager.getAnnotationsList();