# Remove Page Tool not working

**URL:** https://pdfjs.community/t/remove-page-tool-not-working/219
**Category:** Technical Support
**Created:** [August 21, 2020, 4:29pm UTC](https://pdfjs.community/t/remove-page-tool-not-working/219 "2020-08-21T16:29:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![honey.bhatnagar](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@honey.bhatnagar](https://pdfjs.community/u/honey.bhatnagar)
#### Post date: [August 21, 2020, 4:29pm UTC](https://pdfjs.community/t/remove-page-tool-not-working/219/1 "2020-08-21T16:29:55Z")

</div>

**Detailed description of issue**  
The Remove page button in Navigation Panel is not working

 ![Screen Shot 2020-08-21 at 12.27.35](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/1c00e40865009a48e85189bfdbff9910d1b4a65a.png)

**Expected behaviour**  
The Confirmation Popup should close and the page should be remove

**Link to document**  
This issue is coming in the demo as well : [https://pdfjs.express/demo](https://pdfjs.express/demo)

**Code snippet**  
Error coming in Console :  
Uncaught TypeError: Cannot read property ‘then’ of undefined  
at Object.onConfirm (webviewer-ui.min.js:formatted:57274)  
at webviewer-ui.min.js:formatted:67683  
at Object.l (webviewer-ui.min.js:formatted:16219)  
at p (webviewer-ui.min.js:formatted:16237)  
at webviewer-ui.min.js:formatted:16246  
at v (webviewer-ui.min.js:formatted:16256)  
at at (webviewer-ui.min.js:formatted:17007)  
at ot (webviewer-ui.min.js:formatted:16996)  
at lt (webviewer-ui.min.js:formatted:17018)  
at pt (webviewer-ui.min.js:formatted:17096)

Line which is giving error:  
onConfirm: function() {  
return Ct.removePages(a).then((function() {  
r(Ca.setSelectedPageThumbnails([]))  
}  
))

---

<div class="post-metadata">

### Author: ![honey.bhatnagar](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@honey.bhatnagar](https://pdfjs.community/u/honey.bhatnagar)
#### Post date: [August 21, 2020, 4:35pm UTC](https://pdfjs.community/t/remove-page-tool-not-working/219/2 "2020-08-21T16:35:51Z")

</div>

@Logan Could you help here please

@Logan could you share the patch details. is it in 7.0.1?

---

<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: [August 21, 2020, 4:49pm UTC](https://pdfjs.community/t/remove-page-tool-not-working/219/3 "2020-08-21T16:49:35Z")

</div>

Hi,

This feature is not actually supported in PDF.js Express (that part of the UI should not be there).

We just released a patch for this actually but have not updated the demo on the website to that version yet. We will do that shortly.

Thanks for the report,

Logan

---

<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: [August 21, 2020, 4:54pm UTC](https://pdfjs.community/t/remove-page-tool-not-working/219/4 "2020-08-21T16:54:00Z")

</div>


