You can’t delete the table, but you can truncate it. If you don’t need stats, then just turn them off. They’re off by default, so if they’re on, you’ve specifically turned them on in the Display Settings profiles.
Your task looks fine. It will run at 1am each day, and archive a little each time. If you have a huge backlog, it will take many weeks to get up to date. It will not delete everything in the table too, only older records will be removed.
I activated the statistics for a test, now I tried to clear the table by CMS and I can not.
Today is 04/07/2018.
The maintenance of the “stats” table is scheduled for 08/07/2018.
I clicked “RUN NOW” and it did not work.
As you can see the last execution was on 07/02/2018, and after I clicked “RUN NOW” several times the table “stats” had no change in its size or the date of last execution.
Note: In the profile of the players, the sending of statistics is already unchecked, and the saving period of the statistics was set for 1 day “minimum period allowed”.
Does this button not work? or its function is not to clear the stats table.
Run now will simply mean that the task is run next time XTR executes.
By default, 2 months of stats data is kept by the task, so it’s not going to do anything if you keep running it over and over again.
We know the code works. We use it every day. When the stats in your database are older than the limits the task works to, they will be archived in to the library as expected.
You can certainly truncate the stat table if you wish. I’ve no idea how that relates to the auditlog table that you mention in the question title however.