2019-11-26 08:27:08 -05:00
|
|
|
--
|
2020-10-02 07:34:28 -04:00
|
|
|
:api: delete-trained-models
|
2019-11-26 08:27:08 -05:00
|
|
|
:request: DeleteTrainedModelRequest
|
|
|
|
:response: AcknowledgedResponse
|
|
|
|
--
|
|
|
|
[role="xpack"]
|
|
|
|
[id="{upid}-{api}"]
|
2020-09-04 19:57:15 -04:00
|
|
|
=== Delete trained model API
|
2019-11-26 08:27:08 -05:00
|
|
|
|
|
|
|
experimental[]
|
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
Deletes a previously saved trained model.
|
2019-11-26 08:27:08 -05:00
|
|
|
The API accepts a +{request}+ object and returns a +{response}+.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Delete trained model request
|
2019-11-26 08:27:08 -05:00
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
A +{request}+ requires a valid trained model ID.
|
2019-11-26 08:27:08 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2020-09-04 19:57:15 -04:00
|
|
|
<1> Constructing a new DELETE request referencing an existing trained model
|
2019-11-26 08:27:08 -05:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Response
|
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
The returned +{response}+ object acknowledges the trained model deletion.
|
2019-11-26 08:27:08 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|