# メガトピックに属する投稿がある場合、「すべての投稿を削除」が実行できません

**URL:** <https://meta.discourse.org/t/unable-to-delete-all-posts-when-there-are-posts-that-belong-to-megatopic/131652>\
**Category:** Bug\
**Created:** [2019 年 10 月 22 日午後 6:43 UTC](https://meta.discourse.org/t/unable-to-delete-all-posts-when-there-are-posts-that-belong-to-megatopic/131652 "2019-10-22T18:43:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RobinTS](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@RobinTS](https://meta.discourse.org/u/RobinTS)\
**Post date:** [2019 年 10 月 22 日午後 6:43 UTC](https://meta.discourse.org/t/unable-to-delete-all-posts-when-there-are-posts-that-belong-to-megatopic/131652/1 "2019-10-22T18:43:29Z")

</div>

コミュニティで問題が発生しています。特定のユーザーの「すべての投稿を削除」ができません。私の確認では、これは投稿数の多い古いアカウントにのみ発生しているようです。新しいアカウントではこの問題は見られません。

サイト設定を確認し、「すべての投稿を削除」の制限を10,000に引き上げました。

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/b/9b4f876f2c371def8080dec644f8fa1586301baa.png)

現在、約900件の投稿を持つユーザーの削除を試みています。そのユーザーは匿名化を望んでおらず、アカウントと投稿が削除されない場合は法的措置を取るつもりだと脅しています。「すべて削除」ボタンを押すと、約1分後に次のメッセージが表示されます。

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/a/4a0b03fd133023826208e01ec98dde9d2514bdfb.png)

ブラウザのコンソールでは、投稿に対して502エラーが発生しているのが確認できます。  
 ![image](https://global.discourse-cdn.com/meta/original/3X/d/f/dfcddb6318e0564788eb0b9118aefbaacdbbaaf3.png)

サーバーのログを確認したところ、削除を試みた後に以下のエラーが表示されていました。

> TypeError: undefined is not an object (evaluating ‘s.users’)  
> Url: [https://myserver.com/assets/ember\_jquery-d430881a3fb1403871256e5a02423c4b20a78793685e92088613ca9a701baf88.js](https://myserver.com/assets/ember_jquery-d430881a3fb1403871256e5a02423c4b20a78793685e92088613ca9a701baf88.js)  
> Line: 9  
> Column: 8994  
> Window Location: [https://myserver/t/topic/64828/2502](https://myserver/t/topic/64828/2502)

問題の原因を特定できる場所（ログなど）はありますか？

---

_[View the full topic](https://meta.discourse.org/t/unable-to-delete-all-posts-when-there-are-posts-that-belong-to-megatopic/131652)._
