AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 6.5This functionality is generally available and ready for production usage.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
By default, forecasts are retained for 14 days. You can specify a
different retention period with the expires_in parameter in the forecast
jobs API. The delete forecast API enables you to delete one or more
forecasts before they expire.
A comma-separated list of forecast identifiers. If you do not specify
this optional parameter or if you specify _all or * the API deletes
all forecasts from the job.
Leave it out to use /_ml/anomaly_detectors/{job_id}/_forecast.
Specifies whether an error occurs when there are no forecasts. In
particular, if this parameter is set to false and there are no
forecasts associated with the job, attempts to delete all forecasts
return an error.
timeoutstring · default: 30s
Specifies the period of time to wait for the completion of the delete
operation. When this period of time elapses, the API fails and returns an
error.