# How to remove Rubber stamp like Area & linear using annotation.popPath();

**URL:** <https://pdfjs.community/t/how-to-remove-rubber-stamp-like-area-linear-using-annotation-poppath/720>\
**Category:** Technical Support\
**Created:** [April 23, 2021, 10:06am UTC](https://pdfjs.community/t/how-to-remove-rubber-stamp-like-area-linear-using-annotation-poppath/720 "2021-04-23T10:06:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![driley](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@driley](https://pdfjs.community/u/driley)\
**Post date:** [May 4, 2021, 7:00pm UTC](https://pdfjs.community/t/how-to-remove-rubber-stamp-like-area-linear-using-annotation-poppath/720/4 "2021-05-04T19:00:54Z")

</div>

Hi Kiran,

It is not possible to use popPath() on a Stamp Annotation. This is because popPath removes the last line segment of an annotation. Since the Stamp Annotation contains no line segments/paths it can not extend the functionality of popPath. To remove a Stamp Annotation I recommend using the [deleteAnnotation API](https://pdfjs.express/api/CoreControls.AnnotationManager.html#deleteAnnotation__anchor) like so:  
`instance.annotManager.deleteAnnotation(annotation)`

Cheers,  
Dustin

---

_[View the full topic](https://pdfjs.community/t/how-to-remove-rubber-stamp-like-area-linear-using-annotation-poppath/720)._
