elasticsearch/docs/java-rest/high-level/ml/delete-model-snapshot.asciidoc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.1 KiB
Plaintext
Raw Normal View History

--
:api: delete-model-snapshot
:request: DeleteModelSnapshotRequest
:response: AcknowledgedResponse
--
[role="xpack"]
[id="{upid}-{api}"]
2020-10-03 02:53:49 +08:00
=== Delete model snapshots API
Deletes an existing model snapshot.
[id="{upid}-{api}-request"]
2020-10-03 02:53:49 +08:00
==== Delete model snapshots request
A +{request}+ object requires both a non-null `jobId` and a non-null `snapshotId`.
["source","java",subs="attributes,callouts,macros"]
---------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
---------------------------------------------------
<1> Constructing a new request referencing existing `jobId` and `snapshotId`.
include::../execution.asciidoc[]
[id="{upid}-{api}-response"]
2020-10-03 02:53:49 +08:00
==== Delete model snapshots response
The returned +{response}+ object indicates the acknowledgement of the request:
["source","java",subs="attributes,callouts,macros"]
---------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
---------------------------------------------------
<1> `isAcknowledged` was the deletion request acknowledged or not