# Mass close topics?

**URL:** https://meta.discourse.org/t/mass-close-topics/65831
**Category:** Support
**Created:** [2017 年 7 月 7 日午後 8:16 UTC](https://meta.discourse.org/t/mass-close-topics/65831 "2017-07-07T20:16:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ckhawand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ckhawand/32/74974_2.png) [@ckhawand](https://meta.discourse.org/u/ckhawand)
#### Post date: [2017 年 7 月 7 日午後 8:16 UTC](https://meta.discourse.org/t/mass-close-topics/65831/1 "2017-07-07T20:16:30Z")

</div>

Is mass close topics available?  
If not, I would recommend to add this option.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017 年 7 月 7 日午後 8:35 UTC](https://meta.discourse.org/t/mass-close-topics/65831/2 "2017-07-07T20:35:24Z")

</div>

To the right of the Topic header there’s a list icon. Click on that, select the topics you want to close, click the wrench on the right-hand side of the screen, and close the topics. 😉

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

 ![](https://global.discourse-cdn.com/meta/original/3X/9/8/98540f45872e3e37d4edabbaa2eced70d60cb765.png) 

 ![](https://global.discourse-cdn.com/meta/original/3X/6/4/6468f197c15396466da6cb16d8ab9d1327495054.png)

---

<div class="post-metadata">

### Author: ![ckhawand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ckhawand/32/74974_2.png) [@ckhawand](https://meta.discourse.org/u/ckhawand)
#### Post date: [2017 年 7 月 8 日午前 7:39 UTC](https://meta.discourse.org/t/mass-close-topics/65831/3 "2017-07-08T07:39:38Z")

</div>

I mean, we have posts from 2008, and we would like to close all topics before 2015 let’s say, I won’t stay 1 day on selecting all that man! 😃

---

<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: [2017 年 7 月 8 日午前 9:21 UTC](https://meta.discourse.org/t/mass-close-topics/65831/4 "2017-07-08T09:21:09Z")

</div>

See here

> [@Auto-close old topics from a migrated forum](https://meta.discourse.org/t/auto-close-old-topics-from-a-migrated-forum/25448/10):
>
> I would SSH into the server and then cd /var/discourse ./launcher enter app rails c Topic.where(closed: false).where("created\_at \< '2015-01-01'").find\_each do |topic| topic.update\_status("closed", true, Discourse.system\_user) end And you should have all the topics created before January 1st 2015 closed wink

PS: In support requests you should be a bit more specific

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [2017 年 7 月 8 日午前 9:34 UTC](https://meta.discourse.org/t/mass-close-topics/65831/5 "2017-07-08T09:34:57Z")

</div>

> [@ckhawand](#):
>
> If not, I would recommend to add this option.

There is a setting to autoclose topics at a certain post count. And a warn user if topic is older than setting. An “autoclose after nnn days” wouldn’t be a bad idea.

---

<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: [2017 年 7 月 8 日午後 4:30 UTC](https://meta.discourse.org/t/mass-close-topics/65831/6 "2017-07-08T16:30:42Z")

</div>

At the Category level, there are

- close topics after n (topic creation time)
- close topics n after last reply (last post time)

I don’t know how it works with imported topics, but because importing topics is rarely done, IMHO there isn’t a critical need for a “close retro” Setting and a CLI command should suffice.

---

<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: [2019 年 6 月 27 日午前 3:19 UTC](https://meta.discourse.org/t/mass-close-topics/65831/7 "2019-06-27T03:19:26Z")

</div>



---

<div class="post-metadata">

### Author: ![mbbroberg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbbroberg/32/157050_2.png) [@mbbroberg](https://meta.discourse.org/u/mbbroberg)
#### Post date: [2019 年 10 月 18 日午後 7:49 UTC](https://meta.discourse.org/t/mass-close-topics/65831/8 "2019-10-18T19:49:24Z")

</div>

素晴らしい！ジョーさん、このプロセスを可視化してくれてありがとうございます。私が引き継いだ Discourse で手探り状態でしたが、整理のために欠けていたワークフローがこれで揃いました。

---

<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: [2023 年 6 月 27 日午後 8:16 UTC](https://meta.discourse.org/t/mass-close-topics/65831/9 "2023-06-27T20:16:53Z")

</div>



---

<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: [2023 年 6 月 27 日午後 10:15 UTC](https://meta.discourse.org/t/mass-close-topics/65831/10 "2023-06-27T22:15:50Z")

</div>


