To delete one or more TKG templates:
- Establish a CLI session on the Bare Metal Orchestrator VM and log in. For high availability configurations, establish a CLI session using the virtual IP (VIP) of the Load Balancers for the Bare Metal Orchestrator cluster.
- Change the directory to ~/samples/stacks/tcp.
- Edit the <new-stack-id>.yaml file in Vim or a similar editor.
For example:
vim dell_stack.yaml
- List the names of the templates to delete in the
deleteTKGTemplateList
attribute.For an example <new-stack-id>.yaml showing a list of templates to delete, see Sample TKG deployment YAML file.
- Save the file and quit the editor.
- Run the
bmo edit stack -f <new-stack-id>.yaml
command. - To verify the successful deletion, run:
bmo describe stack <stack-name>
The deleted templates are removed from the status section of the output.