Deleting business-level applications using wsadmin scripting

You can use the wsadmin tool to remove business-level applications from your environment. Deleting a business-level application removes the application from the product configuration repository and it deletes the application binaries from the file system of all nodes where the application files are installed.

Before you begin

There are two ways to complete this task. This topic uses the commands in the BLAManagement command group for the AdminTask object to remove business-level applications from your configuration. Alternatively, you can use the scripts in the AdminBLA script library to configure, administer, and remove business-level applications

About this task

Procedure

  1. Start the wsadmin scripting tool.
  2. Verify that the business-level application is ready to be deleted.

    Before deleting a business-level application, use the deleteCompUnit command to remove each configuration unit that is associated with the business-level application. Also, verify that no other business-level applications reference the business-level application to delete.

    Use the following example to delete the composition units for the business-level application of interest:
    AdminTask.deleteCompUnit('-blaID myBLA –cuID compositionUnit1')

    Repeat this step for each composition unit that is associated with the business-level application of interest.

  3. Delete the business-level application.
    Use the deleteBLA command to remove a business-level application from your configuration, as the following example demonstrates:
    AdminTask.deleteBLA('-blaID myBLA')
    If the system successfully deletes the business-level application, the command returns the configuration ID of the deleted business-level application, as the following example displays:
    WebSphere:blaname=myBLA
  4. Save your configuration changes.
    Use the following command example to save your configuration changes:
    AdminConfig.save()
  5. Synchronize the node.
    Use the syncActiveNodes script in the AdminNodeManagement script library to propagate the changes to each active node, as the following example demonstrates:
    AdminNodeManagement.syncActiveNodes()



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Oct 21, 2010 5:30:17 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-iseries&topic=txml_7uninstallbla
File name: txml_7uninstallbla.html