How to clean staff action logs?

Hey!

Is it possible to clean staff action logs? Immh, or is there any option like “delete staff actions whichs older than 30 days” ?

:love_letter:

No, this isn’t possible.

I just need to hack it. And then it will be possible imho.

I guess this is true for everything in life my friend.

4 Likes

You could probably truncate this table without too much risk.

3 Likes

I’m a bit curious why you would want to clean the logs. We’ve run into cases where looking back at actions 1+ years ago was not only useful but actually critical in answering questions that come up when our memory is failing us.

7 Likes

OK. This is solved via UserHistory.destroy_all.

3 Likes