---
title: "DELETE /accounts/{AwsAccountId}/analyses/{AnalysisId}"
method: DELETE
path: "/accounts/{AwsAccountId}/analyses/{AnalysisId}"
---

# DELETE /accounts/{AwsAccountId}/analyses/{AnalysisId}

`DELETE /accounts/{AwsAccountId}/analyses/{AnalysisId}`

Deletes an analysis from Amazon QuickSight. You can optionally include a recovery window during which you can restore the analysis. If you don't specify a recovery window value, the operation defaults to 30 days. Amazon QuickSight attaches a `DeletionTime` stamp to the response that specifies the end of the recovery window. At the end of the recovery window, Amazon QuickSight deletes the analysis permanently.

At any time before recovery window ends, you can use the `RestoreAnalysis` API operation to remove the `DeletionTime` stamp and cancel the deletion of the analysis. The analysis remains visible in the API until it's deleted, so you can describe it but you can't make a template from it.

An analysis that's scheduled for deletion isn't accessible in the Amazon QuickSight console. To access it in the console, restore it. Deleting an analysis doesn't delete the dashboards that you publish from it.

## Path parameters

- `AwsAccountId` string, required
- `AnalysisId` string, required

## Query parameters

- `recovery-window-in-days` integer
- `force-delete-without-recovery` boolean

## Response `200`

Success

- DeleteAnalysisResponse
  - `Status` integer — The HTTP status of the request.
  - `Arn` string — The Amazon Resource Name (ARN) of the deleted analysis.
  - `AnalysisId` string — The ID of the deleted analysis.
  - `DeletionTime` string, date-time — The date and time that the analysis is scheduled to be deleted.
  - `RequestId` string — The Amazon Web Services request ID for this operation.

## Other responses

- `480` — ThrottlingException
- `481` — InvalidParameterValueException
- `482` — ConflictException
- `483` — ResourceNotFoundException
- `484` — UnsupportedUserEditionException
- `485` — InternalFailureException

---

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