How to delete records of staff actions logs
https://xxxxxxxxx.com/admin/logs/staff_action_logs
What problem are you trying to solve? They donât take up much space, and itâs good to be able to tell who broke what when.
But something like this in rails:
UserHistory.where(action: 3).destroy_all
I donât recommend it, but I think it does what you ask.
I like cleanliness
UserHistory.destroy_all
Yeah. Iâm not quite sure what âaction: 3â is, but it was the one I saw for what appeared to be changes of system settings. Remove that and youâll wipe them all away, including stuff like who banned what user, what users changed their usernames, and a bunch of other really useful stuff (unless this is a test site, I guess?)
If itâs an active forum, itâs a bad idea, and unless youâve done something that youâre trying to hide, thereâs a reasonable chance that youâll be sorry.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
