# purge-qan-data not executing

**URL:** <https://forums.percona.com/t/purge-qan-data-not-executing/7035>\
**Category:** PMM 1.x\
**Created:** [May 28, 2019, 5:00pm UTC](https://forums.percona.com/t/purge-qan-data-not-executing/7035 "2019-05-28T17:00:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloud-admin](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@cloud-admin](https://forums.percona.com/u/cloud-admin)\
**Post date:** [May 28, 2019, 5:00pm UTC](https://forums.percona.com/t/purge-qan-data-not-executing/7035/1 "2019-05-28T17:00:29Z")

</div>

Hi,

We are using pmm-server 1.17.1 in Docker. I’ve noticed in past versions that some of the associated docker volumes keep growing despite low retention settings. Usually we just remove pmm-server and pmm-data and start over, but this time I poked around a bit.

Turns out that QAN data is not being purged. We have QUERIES\_RETENTION=2, yet none of the tables mentioned in /etc/cron.daily/purge-qan-data are being purged. Our query\_class\_metrics table was 22 GB and had records going back over 6 months (since we last did a full re-install). Also, the log file /var/log/purge-qan-data.log was empty prior to my manual run of /etc/cron.daily/purge-qan-data, so it would seem that pmm-server is never automatically executing purge-qan-data via cron.
