public void clear() throws IOException {
    Set<String> toClear = new LinkedHashSet<>();
    toClear.add(indexNameFormatter().formatType(TYPE_SPAN));
    toClear.add(indexNameFormatter().formatType(TYPE_DEPENDENCY));
    // Note: Elasticsearch 8.x requires this config to clear with wildcards:
    // action.destructive_requires_name: false
    for (String index : toClear) clear(index);
  }
This is an internal blocking call, only used in tests.
zipkin-storage/elasticsearch/src/main/java/zipkin2/elasticsearch/ElasticsearchStorage.java