Activity and Logs Cleanup

Using 0.32.8 version and Postgres as application db.

Is there any way of archiving mechanism inbuilt in metabase for activity and logs tables?.

Hi @NaveenHadagali
Which tables are you referring to? The log is not stored in the database.

I am referring to view_log and Activity tables

@NaveenHadagali
Okay, you would currently need to create your own script to cleanup those tables.
I think the only table that has cleanup is task_history, which is limited to 100,000 rows.
I cannot find a specific request for cleanup of any table - the closest is a request for control of query_executions:
https://github.com/metabase/metabase/issues/4155