How to clean staff action logs?


#1

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:


How to remove admin logs
(Rafael dos Santos Silva) #2

No, this isn’t possible.


#3

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


(Rafael dos Santos Silva) #4

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


(Jeff Atwood) #5

You could probably truncate this table without too much risk.


(Joshua Rosenfeld) #6

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

OK. This is solved via UserHistory.destroy_all.


(Régis Hanol) #8