---
title: "POST /#X-Amz-Target=AmazonForecast.DeleteWhatIfForecast"
method: POST
path: "/#X-Amz-Target=AmazonForecast.DeleteWhatIfForecast"
---

# POST /#X-Amz-Target=AmazonForecast.DeleteWhatIfForecast

`POST /#X-Amz-Target=AmazonForecast.DeleteWhatIfForecast`

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.

## Headers

- `X-Amz-Target` 'AmazonForecast.DeleteWhatIfForecast', required

## Request body

- DeleteWhatIfForecastRequest
  - `WhatIfForecastArn` string, required — The Amazon Resource Name (ARN) of the what-if forecast that you want to delete.

## Response `200`

Success

## Other responses

- `480` — InvalidInputException
- `481` — ResourceNotFoundException
- `482` — ResourceInUseException

---

[API](https://skmtc.net/aws/apis/forecast.md) · [All operations](https://skmtc.net/aws/apis/forecast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/forecast/versions/3d1c872d2ac9/schema)
