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

***********************
delete_what_if_analysis
***********************



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

  

  Deletes a what-if analysis created using the  CreateWhatIfAnalysis operation. You can delete only what-if analyses that have a status of ``ACTIVE`` or ``CREATE_FAILED``. To get the status, use the  DescribeWhatIfAnalysis operation.

   

  You can't delete a what-if analysis while any of its forecasts are being exported.

  

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


  **Request Syntax**
  ::

    response = client.delete_what_if_analysis(
        WhatIfAnalysisArn='string'
    )
    
  :type WhatIfAnalysisArn: string
  :param WhatIfAnalysisArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the what-if analysis 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`

  