# 无法删除用户的所有帖子（错误 502）

**URL:** <https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391>\
**Category:** Self-hosting\
**Created:** [2023年三月16日 15:53 UTC](https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391 "2023-03-16T15:53:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2023年三月17日 11:08 UTC](https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391/2 "2023-03-17T11:08:10Z")

</div>

> [@Crius](#):
>
> 是否有人能帮我写一个 rake 任务或某个 ruby 函数来删除某个用户的所有帖子？

我认为你可以从这里开始：[How to delete thousands of Personal Messages? - #7 by RGJ](https://meta.discourse.org/t/how-to-delete-thousands-of-private-messages/162747/7?u=canapin)

我猜不用说……先备份（现在说了 :p）！

🙂

---

_[View the full topic](https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391)._
