The call to delete-resource-events-older-than! needs to have the db arg passed in due to the gc bulldozer work that was recently added. This path is only hit when someone sends a clean request to the admin endpoint with a purge_resource_events command. Sending a purge_reports command will trigger gc for both reports and resource_events and is a way to work around this issue.