# How to permanently delete pages and attachments in XWiki?

**URL:** <https://forum.xwiki.org/t/how-to-permanently-delete-pages-and-attachments-in-xwiki/3315>\
**Category:** Help / Discuss\
**Tags:** delete\
**Created:** [July 24, 2018, 11:33am UTC](https://forum.xwiki.org/t/how-to-permanently-delete-pages-and-attachments-in-xwiki/3315 "2018-07-24T11:33:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominik](https://forum.xwiki.org/user_avatar/forum.xwiki.org/dominik/32/735_2.png) [@dominik](https://forum.xwiki.org/u/dominik)\
**Post date:** [July 24, 2018, 11:33am UTC](https://forum.xwiki.org/t/how-to-permanently-delete-pages-and-attachments-in-xwiki/3315/1 "2018-07-24T11:33:14Z")

</div>

Hi all!  
Is there a way to delete permanently all the pages ever created in XWiki i.e. visible in [http://localhost:8080/xwiki/bin/view/Main/AllDocs?view=deletedDocs](http://localhost:8080/xwiki/bin/view/Main/AllDocs?view=deletedDocs)?

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [July 24, 2018, 11:45am UTC](https://forum.xwiki.org/t/how-to-permanently-delete-pages-and-attachments-in-xwiki/3315/2 "2018-07-24T11:45:24Z")

</div>

Yeah, I think we’re missing a UI button for this.

As a workaround you could try [http://snippets.xwiki.org/xwiki/bin/view/Extension/Empty%20Trash%20Bin](http://snippets.xwiki.org/xwiki/bin/view/Extension/Empty%20Trash%20Bin) This snippet is a bit oldish but hopefully it still works.
