# A few questions about batch moving or deleting topics

**URL:** <https://meta.discourse.org/t/a-few-questions-about-batch-moving-or-deleting-topics/88520>\
**Category:** Product Support\
**Created:** [26 במאי,‏ 2018,‏ 7:29pm UTC](https://meta.discourse.org/t/a-few-questions-about-batch-moving-or-deleting-topics/88520 "2018-05-26T19:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [26 במאי,‏ 2018,‏ 7:29pm UTC](https://meta.discourse.org/t/a-few-questions-about-batch-moving-or-deleting-topics/88520/1 "2018-05-26T19:29:34Z")

</div>

Hi. I’ve imported data from a phpbb and I’m reworking all the categories.

How do I move or delete all the topics from:

1. One category (well I’m aware of `Topic.where(category_id: XX).update_all(category_id: YY)` but I don’t know how to delete topics this way)?
2. Multiples categories?
3. All the subcategories from a target parent category?

Thank you.

---

_[View the full topic](https://meta.discourse.org/t/a-few-questions-about-batch-moving-or-deleting-topics/88520)._
