psm stack delete-template

Use this command to delete a Stack template.

Syntax

psm stack delete-template -n|--template-name templateName
    [-v|--version templateVersion]
    [-of|--output-format json|html|short]
    [-wc|--wait-until-complete true|false]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-n|--template-name templateName Name of the Stack template.
-v|--version templateVersion (Optional) The specific version of the Stack template to delete. If not provided, the latest version is deleted.
-of|--output-format json|html|short (Optional) Desired output format.

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

-wc|--wait-until-complete true|false

(Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Waiting for the job to complete... (it cannot be cancelled)
Default: false

Example

$ psm stack delete-template -n TestTemplate -of json
{
    "status":"Template [TestTemplate] deleted successfully"
}