# 批量恢复

**URL:** https://meta.discourse.org/t/bulk-un-deletion/277861
**Category:** Feature
**Tags:** bulk-actions
**Created:** [2023年九月5日 13:43 UTC](https://meta.discourse.org/t/bulk-un-deletion/277861 "2023-09-05T13:43:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年九月8日 02:37 UTC](https://meta.discourse.org/t/bulk-un-deletion/277861/2 "2023-09-08T02:37:39Z")

</div>

> [@pfaffman](#):
>
> 你不会及时获得功能的。
> 
> 通过在 Rails 中进行编辑，然后稍后撤销这些编辑，将它们全部批量移动到私有类别应该不难。

这些主题已经被删除了，我也不知道用户何时会请求恢复这些主题，所以我想我可以等到批量取消删除功能实现。我认为我不是唯一一个觉得它有用的人，这里有相当多的帖子请求帮助这样做。

这也看起来是一种更容易、更安全的方法来以编程方式取消删除，前提是我能弄清楚如何生成用户已删除主题 ID 的列表：

> [@Bulk undelete topics](https://meta.discourse.org/t/bulk-undelete-topics-help/196533/3?u=rahim123):
>
> 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 [How to 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 S…

---

_[View the full topic](https://meta.discourse.org/t/bulk-un-deletion/277861)._
