# topic.destroy(id) を使用して違法コンテンツを削除する

**URL:** <https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239>\
**Category:** Development\
**Created:** [2018 年 3 月 30 日午後 5:00 UTC](https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239 "2018-03-30T17:00:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)\
**Post date:** [2018 年 3 月 30 日午後 6:38 UTC](https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239/3 "2018-03-30T18:38:41Z")

</div>

> [@Mittineague](#):
>
> What other tables cross index the topic id?

I am not touching postgres. I am letting the code do its work

As per @sam at: [https://meta.discourse.org/t/how-to-permanent-delete-a-topic-from-database-with-his-posts/15073/2?u=vikaskedia](https://meta.discourse.org/t/how-to-permanent-delete-a-topic-from-database-with-his-posts/15073/2) this may nuke dependent objects.

---

_[View the full topic](https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239)._
