Command Central 10.11 | Using the Command Line Interface | Stacks and Layers Commands | sagcc delete stacks
 
sagcc delete stacks
Deletes a stack. If the stack contains layers, you can also delete all layers in the stack.
Syntax
*Command Central syntax:
sagcc delete stacks stackName [deleteLayers={true|false}] [options]
*Not applicable to Platform Manager.
Arguments and Options
Argument or Option
Description
stackName
Required. The name of the stack that you want to delete.
[deleteLayers={true|false}]
Optional. Specifies whether the layers in the stack will be deleted. Valid values:
*true - Delete the layers.
*false (default) - Do not delete the layers.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
*The sagcc delete stacks command does not physically delete the stack(s) and does not uninstall the products and fixes in the stack(s). It just removes the stack(s) from Command Central management.
*If you set deleteLayers=false and attempt to delete a stack that contains layers, the command will not delete the stack and will return an error message.
Example
To delete the stack with name "stack01" and all layers in the stack:
sagcc delete stacks stack01 deleteLayers=true