use of co.elastic.clients.elasticsearch.indices.DeleteIndexResponse in project syncope by apache.
the class ElasticsearchIndexManager method removeIndex.
public void removeIndex(final String domain, final AnyTypeKind kind) throws IOException {
DeleteIndexResponse response = client.indices().delete(new DeleteIndexRequest.Builder().index(ElasticsearchUtils.getContextDomainName(domain, kind)).build());
LOG.debug("Successfully removed {}: {}", ElasticsearchUtils.getContextDomainName(domain, kind), response);
}
Aggregations