OpsWorks / Client / delete_stack

delete_stack#

OpsWorks.Client.delete_stack(**kwargs)#

Deletes a specified stack. You must first delete all instances, layers, and apps or deregister registered instances. For more information, see Shut Down a Stack.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

See also: AWS API Documentation

Request Syntax

response = client.delete_stack(
    StackId='string'
)
Parameters:

StackId (string) –

[REQUIRED]

The stack ID.

Returns:

None

Exceptions

  • OpsWorks.Client.exceptions.ValidationException

  • OpsWorks.Client.exceptions.ResourceNotFoundException