# Delete expired ML data **DELETE /_ml/_delete_expired_data/{job_id}** **All methods and paths for this operation:**
DELETE /_ml/_delete_expired_data
DELETE /_ml/_delete_expired_data/{job_id}
Delete all job results, model snapshots and forecast data that have exceeded their retention days period. Machine learning state documents that are not associated with any job are also deleted. You can limit the request to a single or set of anomaly detection jobs by using a job identifier, a group name, a comma-separated list of jobs, or a wildcard expression. You can delete expired data for all anomaly detection jobs by using `_all`, by specifying `*` as the ``, or by omitting the ``. ## Required authorization * Cluster privileges: `manage_ml` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **job_id** (string) 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. ### Body: application/json (object) - **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. ## Responses ### 200 #### Body: application/json (object) - **deleted** (boolean) [Powered by Bump.sh](https://bump.sh)