# Cleaning Stats

**URL:** <https://forums.interworx.com/t/cleaning-stats/12080>\
**Category:** Feature Requests\
**Created:** [March 3, 2008, 9:49pm UTC](https://forums.interworx.com/t/cleaning-stats/12080 "2008-03-03T21:49:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justec](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@Justec](https://forums.interworx.com/u/Justec)\
**Post date:** [March 3, 2008, 9:49pm UTC](https://forums.interworx.com/t/cleaning-stats/12080/1 "2008-03-03T21:49:43Z")

</div>

Not sure if there is a way to do this, but don’t think there is.

I have an account which doesn’t get much activity and just has a small website and its using over 300MB which is mostly stats. Would be nice to have a cutoff date like more than 1 year old or something it gets deleted.

---

<div class="post-metadata">

**Author:** ![docpeyer](https://forums.interworx.com/letter_avatar_proxy/v4/letter/d/51bf81/32.png) [@docpeyer](https://forums.interworx.com/u/docpeyer)\
**Post date:** [March 18, 2008, 1:39pm UTC](https://forums.interworx.com/t/cleaning-stats/12080/2 "2008-03-18T13:39:38Z")

</div>

I second that.

---

<div class="post-metadata">

**Author:** ![tiger](https://forums.interworx.com/letter_avatar_proxy/v4/letter/t/a8b319/32.png) [@tiger](https://forums.interworx.com/u/tiger)\
**Post date:** [March 19, 2008, 12:12am UTC](https://forums.interworx.com/t/cleaning-stats/12080/3 "2008-03-19T00:12:05Z")

</div>

Yes, would be nice to have them get auto deleted.

---

<div class="post-metadata">

**Author:** ![paulo](https://forums.interworx.com/user_avatar/forums.interworx.com/paulo/32/7_2.png) [@paulo](https://forums.interworx.com/u/paulo)\
**Post date:** [July 5, 2010, 2:37am UTC](https://forums.interworx.com/t/cleaning-stats/12080/4 "2010-07-05T02:37:37Z")

</div>

Or a addon button for “clear stats” 🙂 … new feature ? 🙂

---

<div class="post-metadata">

**Author:** ![Justec](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@Justec](https://forums.interworx.com/u/Justec)\
**Post date:** [July 7, 2010, 12:53pm UTC](https://forums.interworx.com/t/cleaning-stats/12080/5 "2010-07-07T12:53:50Z")

</div>

Wow, talk about raising a thread from the dead 🙂

Still think this is a great idea…and not just because I started the thread 🙂

---

<div class="post-metadata">

**Author:** ![Justec](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@Justec](https://forums.interworx.com/u/Justec)\
**Post date:** [August 1, 2010, 11:18am UTC](https://forums.interworx.com/t/cleaning-stats/12080/6 "2010-08-01T11:18:53Z")

</div>

What about something like this:

> **[Delete Files Older Than x Days on Linux](https://www.howtogeek.com/288/delete-files-older-than-x-days-on-linux/)**
>
> The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm...

```auto
find /path/to/files* -mtime +180 -exec rm -rf {} \;

```

Could be setup as a cron job?
