Archive and delete by query for aggregated views.