private static void DeleteIndexerIfExists(string indexerName) { if (_serviceClient.Indexers.Exists(indexerName)) { _serviceClient.DeleteIndexer(indexerName).GetAwaiter().GetResult(); } }