Skip to content

Can't delete STANDARD AWS Quicksight subscription

1

Hi!

I'm trying to automate some things in my application with CDK and now I'm adding custom resource for AWS QuickSight (STANDARD subscription). I was ale to create QuickSight subscription with AWS SDK, but when trying to remove subscription I have received with following name and message:

name: 'PreconditionNotMetException',
message: 'Failed to unsubscribe as the account is not an Enterprise account.',

I tried to remove subscription with CLI under my root account for an AWS account with the same result:

AWS_PROFILE=dev_root aws quicksight delete-account-subscription --aws-account-id="<my-account-id>"

An error occurred (PreconditionNotMetException) when calling the DeleteAccountSubscription operation: Failed to unsubscribe as the account is not an Enterprise account.

Is there really no way to remove AWS QuickSight STANDARD subscription, or error message is misleading and there is something I should do first?

asked 12 days ago23 views
1 Answer
-1

The error message you're encountering is indeed indicating a limitation with Amazon QuickSight subscriptions. Based on the error "Failed to unsubscribe as the account is not an Enterprise account," it appears that the DeleteAccountSubscription API operation is only available for Enterprise edition subscriptions of QuickSight, not for Standard edition subscriptions.

The DeleteAccountSubscription operation is designed to delete a QuickSight account, but this functionality seems to be restricted to Enterprise accounts only. When you try to use this operation on a Standard subscription, you receive the PreconditionNotMetException because one of the preconditions for using this API is having an Enterprise account.

For QuickSight Standard subscriptions, there doesn't appear to be a direct API method to unsubscribe or delete the account through the AWS SDK or CLI. This limitation isn't clearly documented in the API references, which is why the error message might seem misleading.

To remove a Standard subscription, you might need to:

  1. Upgrade to an Enterprise subscription first, then use the DeleteAccountSubscription API
  2. Contact AWS Support for assistance with removing the Standard subscription
  3. Use the QuickSight console directly instead of the API/CLI

This is a limitation to be aware of when automating QuickSight operations with CDK, as the deletion process for Standard subscriptions cannot be fully automated through the available APIs.
Sources
DeleteAccountSubscription - Amazon Quick Sight
delete-account-subscription — AWS CLI 2.27.41 Command Reference
QuickSightClient (AWS SDK for Java - 2.21.29)
QuickSightAsyncClient (AWS SDK for Java - 2.21.29)

answered 12 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.