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
- Choose a starting point and follow the appropriate procedure.
Starting Point Procedure Hosts - Select .
- Select a host.
Applications - Click Application and select an application.
- Click Resource Instances. >
Nodes - Select .
- Select a node.
Resource Templates - Select .
- Click a resource template.
You can filter resource templates using Type and Scope.
- 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.
- Choose one of the following procedures:
Option Description All Instances In the Resource Instances view, click All Instances.
Expand the rows for the listed resource instance type to see individual resource instances.
Click the rows containing the instances to delete.
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. For more information, see Setting Enterprise Permissions.
Caution: You should exercise extreme caution when using this option as it may leave your system in a non-working state.
Instance In the Resource Instances view, expand the All Instances node and click a resource instance.
Click Remove Instance. Deletes the selected resource only if the resource is uninstalled.
CLI
- Procedure
-
In the data file, specify a ResourceInstance element in base format.
<ResourceInstance xsi:type="amxdata:ResourceInstance_base" name="resourceHttpClient" />
-
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"/>