algoliasearch/src/offline/java/com/algolia/search/saas/OfflineClient.java
public Request deleteIndexOfflineAsync(final @NonNull String indexName, CompletionHandler completionHandler) {
        return new AsyncTaskRequest(completionHandler, localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return deleteIndexOfflineSync(indexName);
            }
        }.start();
    }
public Request deleteIndexOfflineAsync(final @NonNull String indexName, CompletionHandler completionHandler) {
        return new AsyncTaskRequest(completionHandler, localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return deleteIndexOfflineSync(indexName);
            }
        }.start();
    }
Delete an offline index.
This deletes the data on disk. If the index does not exist, this method does nothing.

**Note:** This applies both to {@link MirroredIndex} and {@link OfflineIndex} instances.

@param indexName Name of index to delete.
@return A JSON object.