OpenSearch/docs/java-rest/high-level/ml/delete-trained-model.asciidoc

37 lines
1.0 KiB
Plaintext

--
:api: delete-trained-model
:request: DeleteTrainedModelRequest
:response: AcknowledgedResponse
--
[role="xpack"]
[id="{upid}-{api}"]
=== Delete Trained Model API
experimental[]
Deletes a previously saved Trained Model.
The API accepts a +{request}+ object and returns a +{response}+.
[id="{upid}-{api}-request"]
==== Delete Trained Model request
A +{request}+ requires a valid Trained Model ID.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
<1> Constructing a new DELETE request referencing an existing Trained Model
include::../execution.asciidoc[]
[id="{upid}-{api}-response"]
==== Response
The returned +{response}+ object acknowledges the Trained Model deletion.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------