# Batch Delete topics in a category?

**URL:** https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128
**Category:** Feature
**Tags:** bulk-actions
**Created:** [January 22, 2014, 7:27pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128 "2014-01-22T19:27:19Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Mitch](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mitch](https://meta.discourse.org/u/Mitch)
#### Post date: [December 19, 2014, 11:32pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/21 "2014-12-19T23:32:23Z")

</div>

That was it, it was hidden behind the “activity” column/row text. My $.02 the wrench should go on the left, as that is where I was selecting the check boxes so I’m already looking in that part of the screen.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 19, 2014, 11:33pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/22 "2014-12-19T23:33:41Z")

</div>

> [@Mitch](#):
>
> That was it, it was hidden behind the “activity” column/row text.

Screenshot please, as I’d like to know what text you are referring to.

---

<div class="post-metadata">

### Author: ![Mitch](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mitch](https://meta.discourse.org/u/Mitch)
#### Post date: [December 19, 2014, 11:37pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/23 "2014-12-19T23:37:44Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/1/9/19c2e72b4b1dc07319b390f0003d19ef30638314.png) 

you can see the wrench is half showing half hidden on the right side of the screen

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 19, 2014, 11:38pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/24 "2014-12-19T23:38:50Z")

</div>

@awesomerobot, is this a regression? As on our “old” instance, it doesn’t do that. It sits on top of the column headings.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [December 19, 2014, 11:47pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/25 "2014-12-19T23:47:25Z")

</div>

> [@Mitch](#):
>
> you can see the wrench is half showing half hidden on the right side of the screen

To me it looks like the wrench is showing complete - but - only the right half of it has the darker background  
\*lines up with the edge of the table rows below it.

---

<div class="post-metadata">

### Author: ![Mitch](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mitch](https://meta.discourse.org/u/Mitch)
#### Post date: [December 19, 2014, 11:57pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/26 "2014-12-19T23:57:32Z")

</div>

In this grab I made my browser window smaller, if you look carefully you can see the wrench behind the word ![](https://global.discourse-cdn.com/meta/original/3X/0/2/025098999043dc63688301c9cbb8ab8ba168ef0f.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [December 20, 2014, 12:03am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/27 "2014-12-20T00:03:08Z")

</div>

Hmmm, is actually behind it? That is, if you click on the wrench you get Activity sorting instead of the modal?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 20, 2014, 12:05am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/28 "2014-12-20T00:05:48Z")

</div>

Yes. That is correct, it is behind it (just proved it on my installation).

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [October 2, 2015, 5:44pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/29 "2015-10-02T17:44:18Z")

</div>

Really sorry to go necro on this one, but the OP mentioned:

> [@sschafft](#):
>
> How feasible would it be to have a “select all”…

…are there any plans for that one currently? I have an old category I’d like to get rid of, which has 909 topics and I don’t really feel like clicking them all…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 4, 2015, 6:21am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/30 "2015-10-04T06:21:51Z")

</div>

As a workaround you can use the search to search for all the topics in that category and then you can use the select all button 😉

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [October 4, 2015, 12:46pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/31 "2015-10-04T12:46:49Z")

</div>

Nice one. Follow-up question: can I raise the limit of 50 posts per search results page? For 900+ topics to be deleted, this is a major PITA factor… 😉

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [November 5, 2015, 5:45am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/32 "2015-11-05T05:45:09Z")

</div>

I too would like to follow up on this. Currently going through a category with \>2000 threads, attempting to re-categorize all threads that have not been modified within the last 3 months (last edit August 31 or earlier). Currently I am clicking on hundreds of check boxes to do this, would be nice to click on one check box, hold shift and then click on “last” checkbox, with discourse checking all boxes in between. Otherwise a major reorganization like this is a nightmare!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 5, 2015, 12:14pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/33 "2015-11-05T12:14:16Z")

</div>

May be easier to do it from the Ruby Console… just a thought.

---

<div class="post-metadata">

### Author: ![aoredo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aoredo](https://meta.discourse.org/u/aoredo)
#### Post date: [December 28, 2015, 12:00am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/34 "2015-12-28T00:00:15Z")

</div>

Did you by any chance get an easier way to do this? i.e Ruby Console? Thanks

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 28, 2015, 12:02am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/35 "2015-12-28T00:02:02Z")

</div>

No, sorry. I never got any information on this, ended up clicking every checkbox by hand…

---

<div class="post-metadata">

### Author: ![aoredo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aoredo](https://meta.discourse.org/u/aoredo)
#### Post date: [December 28, 2015, 12:05am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/36 "2015-12-28T00:05:56Z")

</div>

WOW! I have over 6K topics to delete. I guess I better get going manually deleting them ☹ Thanks a lot anyway.

---

<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: [December 28, 2015, 12:10am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/37 "2015-12-28T00:10:10Z")

</div>

If this is your own install, you can delete topics from the interactive Ruby console if you SSH into your server and enter the docker container.

---

<div class="post-metadata">

### Author: ![aoredo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aoredo](https://meta.discourse.org/u/aoredo)
#### Post date: [January 4, 2016, 2:17am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/38 "2016-01-04T02:17:39Z")

</div>

@codinghorror - thanks for this- Yes it’s my installation. Is there a guide you can point me to? Or is there a sample Model query that I can use in the irb console?

---

<div class="post-metadata">

### Author: ![Rodelio\_Lagahit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rodelio_lagahit/32/121638_2.png) [@Rodelio\_Lagahit](https://meta.discourse.org/u/Rodelio_Lagahit)
#### Post date: [May 1, 2016, 9:12am UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/39 "2016-05-01T09:12:10Z")

</div>

any update on this mass/batch delete categories feature?

---

<div class="post-metadata">

### Author: ![plyoung](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/plyoung/32/114506_2.png) [@plyoung](https://meta.discourse.org/u/plyoung)
#### Post date: [June 20, 2016, 1:26pm UTC](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128/40 "2016-06-20T13:26:42Z")

</div>

Thanks for the tip on using search. Can’t believe there is no way to delete a whole category if it is not empty or mass select posts for deletion.

[Previous page](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128.md?page=1)

[Next page](https://meta.discourse.org/t/batch-delete-topics-in-a-category/12128.md?page=3)
