Review Queue Bulk Empty

Hi All!

Is there an easy way to clear the Review queue?

We had SSO enabled and must_approve_users wrongly set, so now there’s hundreds to clear out of the Approve User / Delete User. :slight_smile:

Thanks for any help.

Also, happy to do any console or SQL way if the UI ‘bulk accept’ isn’t available. Just wondered if anyone has done that here before or not.

So going through the code, it looks like we could either Rails console a loop to set a status or a destroy on the Reviewables model, or perhaps use a SQL delete direct and clear out that reviewables table? Sounds a little scary :jack_o_lantern:

Looking at the /spec/requests/reviewables_controller_spec.rb I can’t see a bulk ‘perform’ so likely something to be done like that.