Deleting Resource Instances from Nodes

You can delete resource all resource instances or a selected instance from a not by using the GUI or the CLI. A Force Delete option is available but not recommended.

GUI

Procedure

  1. Choose a starting point and follow the appropriate procedure.
    Starting Point Procedure
    Hosts
    1. Select Infrastructure > Hosts.
    2. Select a host.
    Applications
    1. Click Application and select an application.
    2. Click Resource Template> Resource Instances.
    Nodes
    1. Select Infrastructure > Nodes.
    2. Select a node.
    Resource Templates
    1. Select Shared Objects > Resource Templates.
    2. Click a resource template.

      You can filter resource templates using Type and Scope.

  2. Click the Resource Instances tab.
    The list of resource instances display. The resource instances listed in the table on the left hand side are grouped by the type of the resource instance.
  3. Choose one of the following procedures:
    Option Description
    All Instances
    1. In the Resource Instances view, click All Instances.
    2. Expand the rows for the listed resource instance type to see individual resource instances.
    3. Click the rows containing the instances to delete.
    4. Choose a delete option .
      • Delete - deletes the selected resources only if the resources are uninstalled.
      • Force Delete - Force uninstalls the resource instance and then deletes it. This option is enabled only if you have the necessary permissions. See Setting Enterprise Permissions for more information.
        Caution: You should exercise extreme caution when using this option as it may leave your system in a non-working state.
    Instance
    1. In the Resource Instances view, expand the All Instances node and click a resource instance.
    2. Click Remove Instance. Deletes the selected resource only if the resource is uninstalled.

CLI

Procedure

  1. In the data file, specify a ResourceInstance element in base format.
    <ResourceInstance xsi:type="amxdata:ResourceInstance_base" name="resourceHttpClient" />
  2. In the build file, set the action attribute of the AMXAdminTask element to delete and the objectSelector attribute to Environment/Node/ResourceInstance. To perform a force delete, specify the -force option and set it to true.
    <AMXAdminTask action="delete" objectSelector="Environment/Node/ResourceInstance"/>