# 投稿がある場合のユーザー削除を防ぐ方法

**URL:** <https://meta.discourse.org/t/how-to-prevent-user-deletion-if-it-has-posts/136392>\
**Category:** Product Support\
**Created:** [2019 年 12 月 18 日午後 12:04 UTC](https://meta.discourse.org/t/how-to-prevent-user-deletion-if-it-has-posts/136392 "2019-12-18T12:04:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![carlosjcabello](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlosjcabello/32/160234_2.png) [@carlosjcabello](https://meta.discourse.org/u/carlosjcabello)\
**Post date:** [2019 年 12 月 18 日午後 12:04 UTC](https://meta.discourse.org/t/how-to-prevent-user-deletion-if-it-has-posts/136392/1 "2019-12-18T12:04:40Z")

</div>

こんにちは、

ユーザー削除のプロセスが完全に理解できていないため、このトピックを作成しました。

ユーザーに投稿がある場合は削除できないと思っていたのですが、管理パネルのユーザーページには、その旨を伝える情報メッセージが表示されているようです。

> ユーザーに投稿がある場合は削除できません。ユーザーを削除する前に、すべての投稿を削除してください。

このメッセージに言及している関連トピックは以下の通りです。

- [Documentation on the process for deleting users?](https://meta.discourse.org/t/documentation-on-the-process-for-deleting-users/88659)

- [Deleting all posts by a user](https://meta.discourse.org/t/deleting-all-posts-by-a-user/126222)

しかし、私のフォーラムではこのメッセージが表示されておらず（画像参照）、モデレーターとして「ユーザーを削除」ボタンを使って投稿があるユーザーを削除できてしまいました。

 ![Screenshot 2019-12-18 at 12.37.46](https://global.discourse-cdn.com/meta/original/3X/e/e/eee076edba90bced0b7c26f423fd725eb845933d.png)

そのため、スタッフメンバーが投稿があるユーザーを削除できないようにし、上記の情報メッセージを表示させるにはどうすればよいか知りたいです。見落としている設定などはありますか？

よろしくお願いいたします、  
カルロス

---

_[View the full topic](https://meta.discourse.org/t/how-to-prevent-user-deletion-if-it-has-posts/136392)._
