:doc:`ForecastService <../../forecast>` / Client / delete_forecast

***************
delete_forecast
***************



.. py:method:: ForecastService.Client.delete_forecast(**kwargs)

  

  Deletes a forecast created using the  CreateForecast operation. You can delete only forecasts that have a status of ``ACTIVE`` or ``CREATE_FAILED``. To get the status, use the  DescribeForecast operation.

   

  You can't delete a forecast while it is being exported. After a forecast is deleted, you can no longer query the forecast.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteForecast>`_  


  **Request Syntax**
  ::

    response = client.delete_forecast(
        ForecastArn='string'
    )
    
  :type ForecastArn: string
  :param ForecastArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the forecast to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ForecastService.Client.exceptions.InvalidInputException`

  
  *   :py:class:`ForecastService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ForecastService.Client.exceptions.ResourceInUseException`

  