Removing specific staff action logs using the console

I thought it would be something like:

UserHistory.where(“created_at > ?”, date).where( and staffuser=xyz, and action=edit post).destroy_all

but with the proper syntax :stuck_out_tongue: