# How to delete ALL topics and posts older than 2 months?

**URL:** <https://meta.discourse.org/t/how-to-delete-all-topics-and-posts-older-than-2-months/241766>\
**Category:** Support\
**Created:** [October 13, 2022, 2:00am UTC](https://meta.discourse.org/t/how-to-delete-all-topics-and-posts-older-than-2-months/241766 "2022-10-13T02:00:55Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![stoney27](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stoney27/32/122743_2.png) [@stoney27](https://meta.discourse.org/u/stoney27)\
**Post date:** [June 30, 2023, 2:49pm UTC](https://meta.discourse.org/t/how-to-delete-all-topics-and-posts-older-than-2-months/241766/15 "2023-06-30T14:49:14Z")

</div>

I am coming here searching for something similar. But my case is a bit different. I set up a server for internal use five years ago, and our lawyers are now setting a retention policy for all internal data. So I am looking for a way to delete posts older the X years. If anyone has any ideas in a direction to explore I would appreciate the pointers.

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-all-topics-and-posts-older-than-2-months/241766)._
