# Delete all analytics data?

**URL:** <https://community.podlove.org/t/delete-all-analytics-data/934>\
**Category:** Analytics\
**Created:** [April 21, 2017, 9:54am UTC](https://community.podlove.org/t/delete-all-analytics-data/934 "2017-04-21T09:54:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toby](https://community.podlove.org/user_avatar/community.podlove.org/toby/32/61_2.png) [@Toby](https://community.podlove.org/u/Toby)\
**Post date:** [April 21, 2017, 9:54am UTC](https://community.podlove.org/t/delete-all-analytics-data/934/1 "2017-04-21T09:54:34Z")

</div>

Hi all,

I just recently had some problems with my server / provider / amount of traffic. Sad that my provider thinks that success -\> high traffic is a problem, but hey. Thing is: I had to reduce traffic a lot, and I decided to deactivate Piwik (…) and all Podlove tracking. I have tracking in Podseed, that should be sufficient.

Now, what can I do to remove all previous tracking data from my various installations without messing up? Can I safely delete all rows in podlove\_downloadintent tables? I want to clean up so backups run faster and produce smaller files. I’m fine with losing analytics history (didn’t have analytics data from the beginning of any of my podcasts anyway).

Thanks,  
Toby

---

<div class="post-metadata">

**Author:** ![ericteubert](https://community.podlove.org/user_avatar/community.podlove.org/ericteubert/32/1568_2.png) [@ericteubert](https://community.podlove.org/u/ericteubert)\
**Post date:** [April 21, 2017, 2:11pm UTC](https://community.podlove.org/t/delete-all-analytics-data/934/2 "2017-04-21T14:11:21Z")

</div>

Yes, you can safely empty the following tables if you want to get rid of all analytics related data:

- podlove\_downloadintent
- podlove\_downloadintentclean
- podlove\_geoarea
- podlove\_geoareaname
- podlove\_useragent

---

<div class="post-metadata">

**Author:** ![Toby](https://community.podlove.org/user_avatar/community.podlove.org/toby/32/61_2.png) [@Toby](https://community.podlove.org/u/Toby)\
**Post date:** [April 21, 2017, 8:33pm UTC](https://community.podlove.org/t/delete-all-analytics-data/934/3 "2017-04-21T20:33:41Z")

</div>

Thanks Eric, very helpful and worked like a charm 😃

---

<div class="post-metadata">

**Author:** ![MaxZ](https://community.podlove.org/user_avatar/community.podlove.org/maxz/32/686_2.png) [@MaxZ](https://community.podlove.org/u/MaxZ)\
**Post date:** [April 27, 2020, 10:55pm UTC](https://community.podlove.org/t/delete-all-analytics-data/934/4 "2020-04-27T22:55:06Z")

</div>

I got a similar problem. The data is becoming pretty big. How can I reduce it without deleting all of it. The suggestion here seams to be to empty the table but that resets it to zero, right?

---

<div class="post-metadata">

**Author:** ![ericteubert](https://community.podlove.org/user_avatar/community.podlove.org/ericteubert/32/1568_2.png) [@ericteubert](https://community.podlove.org/u/ericteubert)\
**Post date:** [April 28, 2020, 8:05pm UTC](https://community.podlove.org/t/delete-all-analytics-data/934/5 "2020-04-28T20:05:14Z")

</div>

Yes, deleting any data results in that data being lost. All metrics are regularly being recalculated so it will affect old data if you delete old entries. If you don’t mind that, I would suggest to

```sql
DELETE FROM podlove_downloadintent WHERE accessed_at < "2019-01-01 00:00:00"

```

- make a backup first though 😉
- insert any date of your choice
- don’t bother with `podlove_downloadintentclean`, it’s being emptied and recalculated regularly

Side note: Because I’ve implemented this a few times in other projects, I learned about more efficient / space saving ways to do this. I’m not sure though if I’ll ever get around to rewriting this because migrating that data would be a horror scenario where so much can go wrong.
