Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Deleting a resource with AWS Cloud Control API

Focus mode
Deleting a resource with AWS Cloud Control API - Cloud Control API

Use the delete-resource command to delete an existing resource. You can delete the resource whether or not the resource was originally provisioned using Cloud Control API.

Important

We strongly advise against using Cloud Control API to delete resources that are under active management by other services. Doing so can lead to unexpected results. For example, don't use Cloud Control API to delete resources that are currently part of an AWS CloudFormation stack.

To update an existing resource, you must specify the resource's identifier. For more information about finding a resource's identifier, see Using a resource's primary identifier.

The follow example deletes an AWS::Logs::LogGroup resource with the name of CloudControlApiLogGroup.

$ aws cloudcontrol delete-resource \ --type-name AWS::Logs::LogGroup --identifier CloudControlApiLogGroup

Tracking the progress of a delete resource request

The delete-resource command returns a ProgressEvent object that you can use to track the current status of your resource operation request. For more information, see Tracking the progress of resource operation requests.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.