AzureConfig.Program.DeleteCatalogIndex C# (CSharp) Method

DeleteCatalogIndex() private static method

private static DeleteCatalogIndex ( ) : bool
return bool
        private static bool DeleteCatalogIndex()
        {
            Uri uri = new Uri(_serviceUri, "/indexes/invoicetransactions");
            HttpResponseMessage response = AzureSearchHelper.SendSearchRequest(_httpClient, HttpMethod.Delete, uri);
            if (response.StatusCode == HttpStatusCode.NotFound)
            {
                return false;
            }
            response.EnsureSuccessStatusCode();
            return true;
        }