public Task <IlmRemovePolicyResponse> RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action <IlmRemovePolicyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new IlmRemovePolicyRequestDescriptor(index);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <IlmRemovePolicyRequestDescriptor, IlmRemovePolicyResponse>(descriptor));
        }
        public IlmRemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action <IlmRemovePolicyRequestDescriptor> configureRequest = null)
        {
            var descriptor = new IlmRemovePolicyRequestDescriptor(index);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <IlmRemovePolicyRequestDescriptor, IlmRemovePolicyResponse>(descriptor));
        }