public Task <IlmDeleteLifecycleResponse> DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, Action <IlmDeleteLifecycleRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <IlmDeleteLifecycleRequestDescriptor, IlmDeleteLifecycleResponse>(descriptor));
        }
        public IlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action <IlmDeleteLifecycleRequestDescriptor> configureRequest = null)
        {
            var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <IlmDeleteLifecycleRequestDescriptor, IlmDeleteLifecycleResponse>(descriptor));
        }