# Oude onderwerpen opruimen

**URL:** https://meta.discourse.org/t/clean-up-old-topics/253862
**Category:** Support
**Created:** [2 februari 2023 om 17:08 UTC](https://meta.discourse.org/t/clean-up-old-topics/253862 "2023-02-02T17:08:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2 februari 2023 om 17:41 UTC](https://meta.discourse.org/t/clean-up-old-topics/253862/2 "2023-02-02T17:41:17Z")

</div>

Hi! I’m happy to know that Discourse worked very well for your project 😃 👍

> [@gjsman](#):
>
> We can’t find (and I really doubt) the existence of any clean way to remove, say, the oldest year’s worth of topics.

Just to be sure to understand; your criteria to make a topic eligible for deletion would be only its age?

There’s no built-in feature in the interface that would allow that, but you could create and manually trigger a rails script that would delete topics older than a certain date.

> [@Bulk delete all topics in a category](https://meta.discourse.org/t/bulk-delete-all-topics-in-a-category/97904#common-questions-4):
>
> bookmark This guide provides instructions on how to bulk delete all topics within a category on a self-hosted Discourse instance. person_raising_hand Required user level: System Administrator warning SSH access to your server is required Removing all topics from a category can be necessary for various reasons, such as reorganizing content or clearing outdated discussions. This guide walks you through the steps to accomplish this task safely on a self-hosted Discourse server. …

```ruby
Topic.where("created_at.....").destroy_all

```

Between brackets is a SQL query.

---

_[View the full topic](https://meta.discourse.org/t/clean-up-old-topics/253862)._
