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

***********************
delete_what_if_forecast
***********************



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

  

  Deletes a what-if forecast created using the  CreateWhatIfForecast operation. You can delete only what-if forecasts that have a status of ``ACTIVE`` or ``CREATE_FAILED``. To get the status, use the  DescribeWhatIfForecast operation.

   

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

  

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


  **Request Syntax**
  ::

    response = client.delete_what_if_forecast(
        WhatIfForecastArn='string'
    )
    
  :type WhatIfForecastArn: string
  :param WhatIfForecastArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the what-if forecast that you want to delete.

    

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

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

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

  