# Sometime function is not executing even after call with proper parameter

**URL:** <https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [May 28, 2020, 1:56pm UTC](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38 "2020-05-28T13:56:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [May 29, 2020, 3:28pm UTC](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38/4 "2020-05-29T15:28:52Z")

</div>

Hi,

When you try delete an annotation and it doesn’t actually delete, are you still able to select the annotation on the document by clicking on it?

The recommended way to import/export annotations is with the ‘[importAnnotations](https://pdfjs.express/api/CoreControls.AnnotationManager.html#importAnnotations__anchor)’ and ‘[exportAnnotations](https://pdfjs.express/api/CoreControls.AnnotationManager.html#exportAnnotations__anchor)’ APIs. It’s not recommended to use ‘importAnnotCommand’.

Logan

---

_[View the full topic](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38)._
