Batch Delete topics in a category?

AI-generated summary

Users requested a bulk action feature to select and delete or move multiple topics within a category, noting that manual selection is time-consuming sschafft. While the Discourse team confirmed this was planned, early implementations of rudimentary bulk selection were initially limited to admins and faced UI discoverability issues sam. Users reported difficulty locating the action menu, which appeared as a wrench icon partially hidden behind the “Activity” column on smaller screens Mitch. Although a “Delete” option was added to the codebase by eviltrout, several users could not find it in their beta versions, leading to confusion about its availability cregox.

For immediate large-scale cleanup, codinghorror advised administrators to use the interactive Ruby console to execute database queries, such as Topic.where(category_id: X).destroy_all, though warned that processing thousands of topics could take significant time codinghorror. As a GUI workaround, users suggested using the search function to filter topics by category and selecting them in batches, though this was limited by the default 50-result page size zogstrip. The discussion highlighted the need for a “select all” feature that operates on the entire category rather than just visible rows jomaxro. Ultimately, techAPJ announced that the feature to select all visible topics has been implemented, with a commit link provided techAPJ.

How feasible would it be to have a “select all” or check box for each topic in a category to run some action on - ie move, or delete?

The problem comes if you need to delete a bunch of posts or re-categorize them, it gets complicated / time consuming to do it for each topic.

Am I missing some bulk action? Is this on the road map?

4 إعجابات

This has been discussed dozens of times here on meta; the team plans to build it, but hasn’t done it yet.

إعجابَين (2)

@kpfleming - thanks.

Agreed we really need this. Will probably get to it soon. Apologies.

5 إعجابات

@eviltrout has introduced rudimentary support (admin only for now)

We really need some mocks for the controls, reaching to the wrench on the right is just too hard.

إعجاب واحد (1)

What do you think of this idea?

https://meta.discourse.org/t/bulk-topic-selection-ui-problems/12321/6

A long click is really hard to discover, there are two action we want to surface very soon that operate on “everything in the list”

  • If you are on unread, and have more than 1 topic in the list, we want to expose “Stop tracking” which would move all the topics in the list back to “Regular”

  • If you are on new, and have more than 1 topic in the list, we want to expose “Clear New” that would basically tell us only treat stuff as new if it is posted after when that button was clicked.

(undo semantics are complicated though if at all feasible)

The big pain point I see now is not the selecting, its invoking the operation on the partial batch.

إعجاب واحد (1)

Any plans to support this soon?

We just imported all topics from another forum, and deleting multiple topics is a pain.

@eviltrout has introduced rudimentary support (admin only for now)

@sam is there a way to use that option?

إعجاب واحد (1)

We do need a “delete” option on the multi-select for topics, @eviltrout.

4 إعجابات

More info, please? :stuck_out_tongue:

That reminds me @eviltrout can you make sure the delete option is added here?

Oh, I see… Still in eviltrout’s discourse only, I suppose!

Nope. You just need to be a moderator or admin to see it.

And maybe this sword would help:


Where is it? I still can’t see it!

Quick Repro steps:
Click on check a few checkboxes, then click on

إعجاب واحد (1)

Yeah, that’s the first thing I’ve tried. Not there. :frowning:

Yeah, I don’t think Delete is available just yet, as I don’t see it either.

إعجاب واحد (1)

Just added this in master:

https://github.com/discourse/discourse/commit/15c7e01b904a91da51968acecfb543dd6555dccb

4 إعجابات

I don’t see it. :frowning: I can select multiple topics while browsing the category view, but once I have the topics selected I can not find the delete link anywhere. I’ve tried the hamburger, etc. I’m admin on the instance of discourse I’m using. I’m running 1.2.0beta4.

Where should I be looking?

I see the wrench at the upper right – it’s a bit offscreen depending on your resolution. Look there and drag the browser to make it horizontally wider. You’ll find it!