# Alle Unterkategorien aus einer bestehenden Kategorie entfernen

**URL:** <https://meta.discourse.org/t/removing-all-subcategories-from-an-existing-category/115660>\
**Category:** Product Support\
**Created:** [23. April 2019 um 01:23 UTC](https://meta.discourse.org/t/removing-all-subcategories-from-an-existing-category/115660 "2019-04-23T01:23:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [23. April 2019 um 16:05 UTC](https://meta.discourse.org/t/removing-all-subcategories-from-an-existing-category/115660/4 "2019-04-23T16:05:25Z")

</div>

If you need to bulk move all topics from a category to another category you can use the rails console.

```plaintext
Topic.where(category_id: <from_category_id>).update_all(category_id: <to_category_id>)

```

Doing the move through UI, you are not able to select many topics (I think only the first 30 or so) so if you have many topics in a category you should repeat the move many times before finishing.

---

_[View the full topic](https://meta.discourse.org/t/removing-all-subcategories-from-an-existing-category/115660)._
