# 모든 사용자의 게시물을 삭제할 수 없습니다 (에러 502)

**URL:** https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391
**Category:** Self-hosting
**Created:** [3월 16, 2023, 3: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:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [3월 16, 2023, 3:53오후 UTC](https://meta.discourse.org/t/unable-to-delete-all-users-post-error-502/258391/1 "2023-03-16T15:53:32Z")

</div>

같은 문제를 보고하는 이 주제를 발견했는데, 제 상황도 동일한 것 같습니다.

> [@메가토픽에 속한 게시물이 있을 때 "모든 게시물 삭제"를 사용할 수 없습니다](https://meta.discourse.org/t/unable-to-delete-all-posts-when-there-are-posts-that-belong-to-megatopic/131652):
>
> I’m experiencing a problem on my community. I’m unable to “delete all posts” of certain users. From what I can tell it’s only happening to older accounts with a lot of posts. Newer accounts don’t face this problem. I’ve checked the site settings and I’ve increased the limit on the delete all posts to 10 000. I’m currently trying to delete a user with about 900 posts. The user does not want to be anonymized and is threatening legal action if the account and posts are not removed. I pr…

해당 사용자는 자신의 게시물을 삭제해 달라고 요청했지만, 제가 보기에는 메가토픽(megatopic)에 게시물을 남긴 것 같습니다.  
vbulleting에서 이주하면서 메가토픽은 큰 문제가 되지 않았고, 현재 5만 회답 이상인 메가토픽도 여러 개 있습니다.

물론 discourse로 이주하면서 설정은 5,000회답에 도달하면 잠금 처리하고 새 주제를 생성하도록 되어 있습니다.

사용자의 모든 게시물을 삭제할 수 있는 rake 태스크나 실행할 ruby 함수에 대해 도움을 주실 분이 있을까요?

감사합니다

---

<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: [3월 17, 2023, 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 task나 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)

말하지 않아도 알겠지만… 먼저 백업하세요 (자, 이제 말했네요 😛 )!

🙂
