Path parameters
- job_id
string Required Identifier for an anomaly detection job. It can be a job identifier, a group name, or a wildcard expression.
Query parameters
- requests_per_second
number The desired requests per second for the deletion processes. The default behavior is no throttling.
- timeout
string How long can the underlying delete processes run until they are canceled.
Values are
-1
or0
.
Body
- requests_per_second
number The desired requests per second for the deletion processes. The default behavior is no throttling.
- timeout
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
DELETE /_ml/_delete_expired_data/{job_id}
curl \
--request DELETE 'http://api.example.com/_ml/_delete_expired_data/{job_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"requests_per_second":42.0,"timeout":"string"}'
Response examples (200)
A successful response when deleting expired and unused anomaly detection data.
{
"deleted": true
}