turn cleanup metrics into a bulk api call