Possible to unlist old topics in bulk?

I spent some time searching this site looking for an answer this question, but I’ve only seen where other people have asked for the feature here and here without any real resolution to unlisting old topics in bulk.

My organization opens various annual categories for our members throughout year that get hundreds of replies (if not thousands), so it would really, really be beneficial to us if Discourse provided this feature.

Is there a workaround for this, or even a timeline as to when the next Discourse update will include an option for bulk unlisting of topics?

1 Like

It’s already there.

  1. Click on a tag or category to get a topic list
  2. Click the bullet-list icon to the left of the word “Topic” in the list header.
  3. Check the topics you want.
  4. Click the :wrench: button that appears in the upper right.
  5. Click Unlist Topics.
3 Likes

Thanks, @downey! Just followed your outlined steps, however, after clicking all 718 topics, I’m now getting an error message after clicking “Unlist Topics” – and many of my topics (when I reopen the category in another tab) are not actually unlisted.

Any insight on that?

1 Like

Any errors in /admin/logs or Chrome Debug tools F12?

From the /admin/error logs:

And from Chrome Debug/F12:

For the F12, you need to click on the Console tab, as what you took a screenshot of is simply the HTML source that built the page, not what errors may have been reported.

Thanks for clarifying, @cpradio. Here’s what I pulled from the Console tab:

I’m not sure if this will work for 718 topics at once; you might try smaller batches of 20-50 first.

I also strongly suggest you set auto-close on that category so all those topics will auto-close after (x) days or (x) days after the last activity. Then this will be basically automatic. That can be done via the category edit dialog.

1 Like

Thanks for that tip, @codinghorror. We’d like to keep the category (it is in use for several months a year and remains linked in various places so we’re hesitant to outright close it and lose the URL), but we would like to unlist old topics. However, for now I’ll try unlisting in batches.

I’m not proposing that you remove the category – I’m proposing that you set the “auto-close” setting on the category so every newly created topic in that category automatically closes after a certain interval of time.

3 Likes

If we “close” a topic, is that the same as unlisting it – or does it delete?

A closed topic won’t be shown a number of places, so it gets more suppressed. Not the same as unlisting, though.

A closed topic does not allow new replies. Users can still edit their own posts, and users can like posts, but no non-staff replies are allowed.

1 Like

More importantly to his implicit request, closed stuff won’t get mailed out in the digest. I also believe @techapj added a field that can suppress entire categories from the digest if needed?

3 Likes

Yes, the setting name is digest suppress categories.

3 Likes

Once “Unlisted”, it would be nice to have a bulk “Re-list” button (in the future).

Not following, if you use the wrench on the topic as an admin you can “unlist” topics and then “re-list” if needed.

Re-listing is now be done one by one. Useful once many topics are unlisted and many will need to be re-listed again after e.g. proofreading.

It was relevant during the bulk import stage in our case, bulk re-listing should be helping posting back unlisted threads and topics quicker.

Ahh a much much better workflow would be to create a staff only category for the topics while proofing and then shift them out of said category once they are ready.

2 Likes