algoliasearch/src/offline/java/com/algolia/search/saas/OfflineClient.java
private JSONObject deleteIndexOfflineSync(final @NonNull String indexName) throws AlgoliaException {
        try {
            FileUtils.deleteRecursive(getIndexDir(indexName));
            return new JSONObject()
                .put("deletedAt", DateUtils.iso8601String(new Date()));
        } catch (JSONException e) {
            throw new RuntimeException(e); // should never happen
        }
    }
private JSONObject deleteIndexOfflineSync(final @NonNull String indexName) throws AlgoliaException {
        try {
            FileUtils.deleteRecursive(getIndexDir(indexName));
            return new JSONObject()
                .put("deletedAt", DateUtils.iso8601String(new Date()));
        } catch (JSONException e) {
            throw new RuntimeException(e); // should never happen
        }
    }
private JSONObject deleteIndexOfflineSync ( final @ NonNull String indexName ) throws AlgoliaException { try { FileUtils . deleteRecursive ( getIndexDir ( indexName ) ) ; return new JSONObject ( ) . put ( "deletedAt" , DateUtils . iso8601String ( new Date ( ) ) ) ; } catch ( JSONException e ) { throw new RuntimeException ( e ) ; // should never happen } }
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 response.
Delete an offline index . This deletes the data on disk . If the index does not exist this method does nothing .