# Bulk undelete topics

**URL:** https://meta.discourse.org/t/bulk-undelete-topics/196533
**Category:** Support
**Tags:** bulk-actions
**Created:** [July 9, 2021, 3:01am UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533 "2021-07-09T03:01:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![cocococosti](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cocococosti/32/231474_2.png) [@cocococosti](https://meta.discourse.org/u/cocococosti)
#### Post date: [July 12, 2021, 11:14pm UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533/3 "2021-07-12T23:14:15Z")

</div>

There is no “undelete” bulk action that I know of, so you’ll need to write a script for this and use the [Discourse API](https://meta.discourse.org/t/discourse-api-documentation/22706). Everything you do in Discourse you can do through the API, check this topic to learn how [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

As instructed in the topic, if you check your network tab (in your browser’s dev tools), you’ll see that whenever the “reverse delete” button is clicked, there is a PUT call made to `/posts/<post-id>/recover`

 ![Screen Shot 2021-07-12 at 19.05.37](https://global.discourse-cdn.com/meta/original/3X/0/0/00d2634113131ca976dfacbb9c4ed46899bfe027.png)

So, if you have a list of IDs of the posts you want to “undelete” then you could do so by making successive calls to that end point.

---

_[View the full topic](https://meta.discourse.org/t/bulk-undelete-topics/196533)._
