# 如何删除论坛上的所有内容，只保留用户？

**URL:** https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083
**Category:** Support
**Created:** [2022年十二月7日 02:25 UTC](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083 "2022-12-07T02:25:27Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2022年十二月8日 23:16 UTC](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083/26 "2022-12-08T23:16:53Z")

</div>

感谢您确认。我想确保一下，因为我上次使用时，[Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349) 上列出的其他一些推荐方法会产生不希望的副作用。

我曾用一种方法将帖子从一个类别移动到另一个类别，但它将“关于”帖子与常规帖子一起移动了。不过，我可能使用了 rails 脚本而不是 rake 任务。我不确定。🤔

我还使用了“[将带有特定标签的所有帖子移动到单个类别](https://meta.discourse.org/t/administrative-bulk-operations/118349#move-all-topics-with-a-specific-tag-to-a-single-category-15)” rake 方法，该方法[未正确填充](https://meta.discourse.org/t/bulk-tagged-topics-then-moved-topics-into-another-category-but-the-category-tag-selector-doesnt-show-tags/213136)数据库中与标签相关的某些表。

* * *

编辑：哦，今天是我的生日！但愿[蛋糕是真的](https://www.youtube.com/watch?v=Y6ljFaKRTrI)… 但也许是真的呢？

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-everything-from-my-forum-and-just-leave-the-users/248083)._
