purgeBleveIndexesWithHttpInfo method

Future<Response> purgeBleveIndexesWithHttpInfo()

Purge all Bleve indexes

Deletes all Bleve indexes and their contents. After calling this endpoint, it is necessary to schedule a new Bleve indexing job to repopulate the indexes. Minimum server version: 5.24 ##### Permissions Must have sysconsole_write_experimental permission.

Note: This method returns the HTTP Response.

Implementation

Future<Response> purgeBleveIndexesWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/bleve/purge_indexes';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}