Deleting a template instance

You can delete a template instance and all its related resources when you do not need them any more.

About the task

In Managed services, you can create templates based on IBM PureApplication patterns. To delete a template instance is also supported for such templates.

Procedure

To delete a template instance, follow these steps:

  1. In the navigation bar, click Automate Infrastructure > Instances. Click the Terraform templates tab.

  2. Search for your instance.

    You can use the following methods to search for template instances:

    • Enter the name of the instance in the search instance filter.
    • Click the show filter menu icon to list template instances based on the selected provider.
    • You can click the column headings to sort the list.
    • You can select a namespace from the All namespaces drop-down list. The list of template instances in the page changes based on the selected namespace. You can also select "All namespaces" to see all the template instances for which you have access.

    Use the Instances per page drop-down to select the number of instances to display per page. Use the > or < to go to the next or previous page.

  3. In the instance list, click the overflow menu for the instance that you want to delete. The action list is displayed.

  4. In the action list, click Destroy resources to delete all the resources related to the instance from the cloud provider. This option does not delete the instance from the Managed services environment.

  5. Enter destroy to confirm and click Destroy. The instance status is changed to Destroyed.

  6. In the action list, click Delete instance to delete the instance from the Managed services environment.

  7. Enter delete to confirm and click Delete. The instance is deleted from the instances list.

    Note:

    • If you delete a template, then you cannot modify or deploy instances that are associated with this template.
    • If you are using AWS cloud connections with an expired temporary access key, then the destroy operation fails. Refresh the credentials in the cloud connections page, run a plan and then apply before you retry the destroy a template instance operation. For steps to refresh the credentials, see Configuring an Amazon EC2 connection.