# Audit profile retention time and pruning

**URL:** <https://forum.inductiveautomation.com/t/audit-profile-retention-time-and-pruning/85153>\
**Category:** Ignition\
**Tags:** database\
**Created:** [February 2, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/audit-profile-retention-time-and-pruning/85153 "2024-02-02T12:36:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boandersen](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@boandersen](https://forum.inductiveautomation.com/u/boandersen)\
**Post date:** [February 2, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/audit-profile-retention-time-and-pruning/85153/1 "2024-02-02T12:36:53Z")

</div>

I am seeking information on the pruning of the audit log and how it works.

I want to remove some entries from the log, and am considering if it is safest to let ignition gateway do the work by temporarily setting the pruning on after 5 days - but if I configure that, will it happen right a way, or will it happen at a certain time of day? My alternative is to execute a query to remove the rows, I prefer letting ignition do the CRUDs

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 2, 2024, 4:30pm UTC](https://forum.inductiveautomation.com/t/audit-profile-retention-time-and-pruning/85153/2 "2024-02-02T16:30:54Z")

</div>

The prune task is run every 30 minutes, counting from approximately whatever arbitrary time the gateway started up. You should see a `datasource audit profile prune` scheduled task on the Diagnostics -\> Execution page on the gateway.
