Deleting Applications

You can delete applications from the Administrator GUI or by using the CLI. If you are using the Administrator GUI, you have a Force Delete option that deletes the application regardless of its state.

GUI

Procedure

  1. Click the Applications button.
  2. In the Applications list, click one or more applications.
  3. Choose a delete option.
    Option Description Procedure
    Delete Deletes the application if the application is not deployed and no order application depends on it.
    1. Do one of the following:
      • Click Delete.
      • Delete > Delete.
    2. If there are target applications, the Application Dependencies to Delete dialog displays.
    3. Check the checkboxes next to the target applications to delete.
    4. Click Delete.
    Force Delete

    Deletes the application regardless of its state.

    This option is enabled only if you have the necessary permissions. See Setting Enterprise Permissions for more information.

    Note: Exercise extreme caution when using this option as it might leave your system in a non-working state.
    Select Delete > Force Delete.
    The selected applications and target applications are deleted.

CLI

Procedure

  1. In the data file, specify Environment and Application elements in base format. Drivers required for the application resource instances can be specified inside the <Application> element in the data.xml file.
    <Environment xsi:type="amxdata:Environment" name="envName" >
     <Application xsi:type="amxdata:Application" name="test.app1" contact="TIBCO Inc." description="Test application with imported resource template which requires a driver feature" importResourceTemplates="true" resourceTemplatesScope="Application">
    		
                <Node name="${dev.node.name}" environmentName="${dev.envt.name}"/>
                <ApplicationTemplate xsi:type="amxdata_reference:ApplicationTemplate_reference" name="AppTemplate"/>
    			
    			<!-- Specify the resource template in the DAA and the required driver feature. -->
    			<Driver resourceTemplateName="OracleResourceTemplate" driverFeatureName="com.tibco.tpcl.gen.oracle.jdbc.feature" driverFeatureVersion="11.2.100.001"/>
    			
            </Application>
    </Environment>
  2. In the build file, set the action attribute of the AMXAdminTask element to delete and the objectSelector attribute to Environment/Application. To perform a force delete, add the -force option.
    <AMXAdminTask action="delete" objectSelector="Environment/Application" [-force] />