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

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

          body = nil

          arguments = arguments.clone

          _model_id = arguments.delete(:model_id)

          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
#
# @option arguments [String] :model_id The ID of the trained model to delete
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html
#
Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
Deletes an existing trained inference model that is currently not referenced by an ingest pipeline .
def delete_trained_model(arguments = {})
          raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _model_id = arguments.delete(:model_id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def delete_trained_model ( arguments = { } ) raise ArgumentError , "Required argument 'model_id' missing" unless arguments [ :model_id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _model_id = arguments . delete ( :model_id ) method = Elasticsearch :: API :: HTTP_DELETE path = "_ml/trained_models/#{Utils.__listify(_model_id)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
Deletes an existing trained inference model that is currently not referenced by an ingest pipeline .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None