public async Task <IActionResult> DeleteIndex(string index) { try { await _manageElasticsearch.DeleteIndexAsync(index); return(Ok()); } catch (Exception ex) { return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message)); } }