Delete business-level applications using scripting
Use wsadmin to remove business-level applications from the environment. Deleting a business-level application removes the application from WAS configuration repository and it deletes the application binaries from the file system of all nodes where the application files are installed.
There are two ways to complete this task. This page uses the commands in the BLAManagement to remove business-level applications from the configuration. Alternatively, we can use the scripts in the AdminBLA script library to configure, administer, and remove business-level applications
- Launch the wsadmin scripting tool using the Jython scripting language.
- 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.
- Delete the business-level application. Use the deleteBLA command to remove a business-level application from the 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
- Save the configuration changes...AdminConfig.save()
- 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()
Automating business-level application configurations using the scripting library
Set up business-level applications using scripting
Install enterprise apps using scripting
Create business-level applications
Business-level application configuration scripts