purgeElasticsearchIndexesWithHttpInfo method
Purge all Elasticsearch indexes
Deletes all Elasticsearch indexes and their contents. After calling this endpoint, it is necessary to schedule a new Elasticsearch indexing job to repopulate the indexes. Minimum server version: 4.1 ##### Permissions Must have manage_system
permission.
Note: This method returns the HTTP Response
.
Implementation
Future<Response> purgeElasticsearchIndexesWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/elasticsearch/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,
);
}