# 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:** 1

<div class="post-metadata">

**Author:** ![kiran.patil](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kiran.patil](https://pdfjs.community/u/kiran.patil)\
**Post date:** [April 23, 2021, 10:06am UTC](https://pdfjs.community/t/how-to-remove-rubber-stamp-like-area-linear-using-annotation-poppath/720/1 "2021-04-23T10:06:14Z")

</div>

**PDF.js Express Version**  
7.3.1

**Detailed description of issue**  
On some action I able to remove that last added point of _ **AnnotationCreateAreaMeasurement** _ and _ **AnnotationCreatePerimeterMeasurement** _ by using below code snippet.

> annotation.popPath()

Now I want to do the same scenario for rubber stamp - I will be getting that annotation object and then remove by _**popPath()**_  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/b7ede5c47bb0aa0f8718e555719b3c6ba9bb7a95.png)  
**Expected behaviour**  
I should be able to remove that added rubber stamp. **[Not by using delete]**

**Code snippet**

```
const currentTool = this.viewerInstance.getToolMode();
if (currentTool.annotation && currentTool.annotation.popPath) {
        currentTool.annotation.popPath();
}

```

---

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