def METHOD_NAME(self):
    existing_indices = sorted(self._es.indices.get(ES_INDEX_PATTERN).keys(), reverse=True)
    for index_name in existing_indices[MAX_EXPORTS_COUNT:]:
        self._es.indices.delete(index_name)
        logger.info("Removed '%s' index", index_name)