# カテゴリを削除すると、その中のトピックはどうなりますか？

**URL:** <https://meta.discourse.org/t/when-we-delete-a-category-what-happens-to-the-deleted-topics-in-it/171131>\
**Category:** Product Support\
**Created:** [2020 年 11 月 24 日午前 8:47 UTC](https://meta.discourse.org/t/when-we-delete-a-category-what-happens-to-the-deleted-topics-in-it/171131 "2020-11-24T08:47:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)\
**Post date:** [2020 年 12 月 7 日午後 4:45 UTC](https://meta.discourse.org/t/when-we-delete-a-category-what-happens-to-the-deleted-topics-in-it/171131/9 "2020-12-07T16:45:33Z")

</div>

このテストは実験環境で行いました。削除されたトピックを含むカテゴリを削除すると、削除されたトピックの category\_id フィールドは変更されず、これらのトピックにアクセスする唯一の方法は、[Data Explorer](https://meta.discourse.org/t/32566?silent=true) を介して SQL クエリを実行することです。そのため、有効なカテゴリ ID のリストをクエリに渡し、category\_id がそのリストに含まれていないトピックを要求しました。

---

_[View the full topic](https://meta.discourse.org/t/when-we-delete-a-category-what-happens-to-the-deleted-topics-in-it/171131)._
