# 如何完全删除帖子？

**URL:** https://meta.discourse.org/t/how-to-remove-post-completely/50514
**Category:** Support
**Created:** [2016年九月22日 23:33 UTC](https://meta.discourse.org/t/how-to-remove-post-completely/50514 "2016-09-22T23:33:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bek/32/61660_2.png) [@bek](https://meta.discourse.org/u/bek)
#### Post date: [2016年九月22日 23:33 UTC](https://meta.discourse.org/t/how-to-remove-post-completely/50514/1 "2016-09-22T23:33:04Z")

</div>

Hey there!

I want to remove a post completely. For example can I delete post shown below? I don’t want to see this deleted post shown in red, even if they’re only visible to staff. (If you wondered why I want to remove it, because I have obsession.)

 ![](https://global.discourse-cdn.com/meta/original/3X/9/8/98b8b097f1c6a9388c15d03a626abfd6aea5cf33.PNG)

I think discourse is a very pleasant forum software. But sometimes it makes me laugh. I can do a lot of thing as an admin, but I can’t delete post completely… What a contradiction! 😊

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2021年三月1日 22:51 UTC](https://meta.discourse.org/t/how-to-remove-post-completely/50514/28 "2021-03-01T22:51:02Z")

</div>

我们偶尔会收到支持请求，要求我们从数据库中彻底删除帖子。最常见的情况是，用户上传了包含敏感信息的附件。有时，用户也会在主题中直接发布敏感信息。收到此类请求时，我们会通过站点的 Rails 控制台彻底删除该帖子。

对于帖子可以保留但需要移除部分细节的情况，我在想是否可以通过“隐藏修订”功能安全地处理：

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/7/577148baa4df922f272741b8be72daf53a27b1b8.png)

例如，如果帖子中上传了敏感文档，编辑帖子以移除该上传文件，然后选择“隐藏修订”，是否能解决所有安全问题？

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月25日 18:37 UTC](https://meta.discourse.org/t/how-to-remove-post-completely/50514/36 "2023-10-25T18:37:47Z")

</div>

我们现在有了 `can_permanently_delete` 设置，您可以使用它从 UI 中永久删除帖子和帖子修订。 🥳

您可以在此处阅读更多相关信息：

> [@Introducing permanently delete post functionality](https://meta.discourse.org/t/introducing-permanently-delete-post-functionality/207109):
>
> When a post is deleted in Discourse, we perform a soft-delete. This means that post is still present in the database in case an administrator wants to recover it later. A soft-delete is not sufficient when the deleted post contains sensitive information and must be pruned from the database completely. For those situations, we are introducing the ability to permanently delete a post. This feature was implemented under a hidden site setting because of how dangerous it can be, once a pos…

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月25日 18:39 UTC](https://meta.discourse.org/t/how-to-remove-post-completely/50514/37 "2023-10-25T18:39:10Z")

</div>


