{
  "ml.delete_forecast": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-forecast",
      "description": "Delete forecasts from a job"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/_forecast",
          "methods": [
            "DELETE"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job from which to delete forecasts"
            }
          }
        },
        {
          "path": "/_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}",
          "methods": [
            "DELETE"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job from which to delete forecasts"
            },
            "forecast_id": {
              "type": "string",
              "description": "The ID of the forecast to delete, can be comma delimited list. Leaving blank implies `_all`"
            }
          }
        }
      ]
    },
    "params": {
      "allow_no_forecasts": {
        "type": "boolean",
        "default": true,
        "description": "Whether to ignore if `_all` matches no forecasts"
      },
      "timeout": {
        "type": "time",
        "default": "30s",
        "description": "Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds"
      }
    }
  }
}
