# Move all topics from 1 category to other and tagging

**URL:** https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069
**Category:** Support
**Created:** [October 4, 2016, 1:29pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069 "2016-10-04T13:29:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![junaid\_pk14](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/junaid_pk14/32/67840_2.png) [@junaid\_pk14](https://meta.discourse.org/u/junaid_pk14)
#### Post date: [October 4, 2016, 1:29pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/1 "2016-10-04T13:29:32Z")

</div>

Hello,

We want to move all articles from 1 category to the other, Our categories article count range is from 10 to 34,000. We tried the way mentioned here [https://meta.discourse.org/t/move-topics-to-new-category/21313](https://meta.discourse.org/t/move-topics-to-new-category/21313) and it works well for few topics. Is there any other tool that help us to achieve this?

I checked myself in rails code and found a way to achieve this manually using rails console by following this piece of code  
operator = TopicsBulkAction.new(current\_user, topic\_ids, operation, group: operation[:group])  
changed\_topic\_ids = operator.perform!

Regards,  
Junaid

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 4, 2016, 2:42pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/2 "2016-10-04T14:42:08Z")

</div>

If you want to move all of the topics to another category, why not just rename the category?

---

<div class="post-metadata">

### Author: ![junaid\_pk14](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/junaid_pk14/32/67840_2.png) [@junaid\_pk14](https://meta.discourse.org/u/junaid_pk14)
#### Post date: [October 4, 2016, 3:00pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/3 "2016-10-04T15:00:49Z")

</div>

Yes this would work well in some case but if we have 2 categories and each have 1000 topic and we want to merge them then this would not work. Thanks for good idea.

---

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [October 6, 2016, 11:43am UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/4 "2016-10-06T11:43:54Z")

</div>

I have had to make some large moves in the past to remove unpopular categories. The only thing to keep me sane is relying on a keyboard macro tool to handle some of the repetition of selecting the topics (x tabs and space). I use  
[https://www.keyboardmaestro.com/main/](https://www.keyboardmaestro.com/main/)

Ultimately, would be nice to have a bulk move tool in Discourse, but understandably not a priority since it is not something used that often

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 14, 2019, 1:03pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/5 "2019-03-14T13:03:12Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 14, 2019, 7:24pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/6 "2019-03-14T19:24:57Z")

</div>

If you are changing the category of many thousands of topics, you will probably want to do that at the command line on the server.

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [May 7, 2019, 9:38am UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/7 "2019-05-07T09:38:39Z")

</div>

How do we can move all topics of a category to a tag?  
Thank you!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 7, 2019, 1:07pm UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/8 "2019-05-07T13:07:35Z")

</div>

I think there are some examples here somewhere. If you don’t get a response soon enough and have a budget, let me know.

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [May 8, 2019, 2:02am UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/9 "2019-05-08T02:02:59Z")

</div>

i want to all of topics category classify by tag and remove category 🙂

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/f/2fc5ab6ae76ee1080b97d75bf6f581f6cc4545cf.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 5, 2022, 7:58am UTC](https://meta.discourse.org/t/move-all-topics-from-1-category-to-other-and-tagging/51069/11 "2022-09-05T07:58:30Z")

</div>


