Skip to content

Commit 2df55e0

Browse files
committed
[DOCS] Clarify ML job closure prerequisites (#49265)
1 parent 504e4b5 commit 2df55e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/reference/ml/anomaly-detection/apis/close-job.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ operations, but you can still explore and navigate results.
2727
* If the {es} {security-features} are enabled, you must have `manage_ml` or
2828
`manage` cluster privileges to use this API. See
2929
<<security-privileges>>.
30+
* Before you can close an {anomaly-job}, you must stop its {dfeed}. See
31+
<<ml-stop-datafeed>>.
3032

3133
[[ml-close-job-desc]]
3234
==== {api-description-title}

docs/reference/ml/anomaly-detection/apis/delete-job.asciidoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Deletes an existing {anomaly-job}.
1818

1919
* If {es} {security-features} are enabled, you must have `manage_ml` or `manage`
2020
cluster privileges to use this API. See <<security-privileges>>.
21+
* Before you can delete a job, you must delete the {dfeeds} that are associated
22+
with it. See <<ml-delete-datafeed>>.
23+
* Before you can delete a job, you must close it (unless you specify the `force` parameter). See <<ml-close-job>>.
2124

2225
[[ml-delete-job-desc]]
2326
==== {api-description-title}
@@ -29,10 +32,6 @@ delete the job directly from the `.ml-*` indices using the {es} delete document
2932
API. When {es} {security-features} are enabled, make sure no `write` privileges
3033
are granted to anyone over the `.ml-*` indices.
3134

32-
Before you can delete a job, you must delete the {dfeeds} that are associated
33-
with it. See <<ml-delete-datafeed,Delete {dfeeds-cap}>>. Unless the `force`
34-
parameter is used the job must be closed before it can be deleted.
35-
3635
It is not currently possible to delete multiple jobs using wildcards or a comma
3736
separated list.
3837

0 commit comments

Comments
 (0)