elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb
def delete_job(arguments = {})
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _job_id = arguments.delete(:job_id)

          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Deletes an existing anomaly detection job.
#
# @option arguments [String] :job_id The ID of the job to delete
# @option arguments [Boolean] :force True if the job should be forcefully deleted
# @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
#
Deletes an existing anomaly detection job.
Deletes an existing anomaly detection job .
def delete_job(arguments = {})
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _job_id = arguments.delete(:job_id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def delete_job ( arguments = { } ) raise ArgumentError , "Required argument 'job_id' missing" unless arguments [ :job_id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _job_id = arguments . delete ( :job_id ) method = Elasticsearch :: API :: HTTP_DELETE path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Deletes an existing anomaly detection job.
Deletes an existing anomaly detection job .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None