Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting) > OSGiApplicationCommands: OSGi Applications administrative commands
removeLocalRepositoryBundles command
Use the removeLocalRepositoryBundles command to remove bundles and composite bundles from the bundle repository that is included in the product.
To run the command, use the AdminTask object of the wsadmin scripting client.
Command-line help is provided for OSGi Applications commands:
- For a list of the available OSGi Applications commands in Jython and a brief description of each command, run at the wsadmin prompt:
print AdminTask.help('OSGiApplicationCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save changes to the master configuration by using the following command:
AdminConfig.save()
Purpose
This command removes bundles and composite bundles from the internal bundle repository.
We cannot remove composite bundles at the same time as you remove any bundles that they reference. We must first remove the composite bundles, then run the removeLocalRepositoryBundles command a second time to remove the referenced bundles.
We can use the listLocalRepositoryBundles command to list the symbolic names and versions of the bundles currently held in the repository. The output from the listLocalRepositoryBundles command is formatted so that you can copy the list of bundles, then paste them into the removeLocalRepositoryBundles command.
Target object
The specified bundles.
Required parametersA list of the bundles to be removed.
The list entry for each bundle or composite bundle contains the bundle symbolic name and the bundle version. The bundle version is in the form n.n.n, for example 1.1.0. The bundle symbolic name, together with the bundle version, identifies a unique bundle.
Conditional parameters
None
None
Optional parameters
Example
AdminTask.removeLocalRepositoryBundles([ 'bundle1_symbolic_name;bundle1_version bundle2_symbolic_name;bundle2_version bundle3_symbolic_name;bundle3_version ' ])
Parent topic: Administer bundles in the internal bundle repository using wsadmin
Parent topic: OSGiApplicationCommands: OSGi Applications administrative commands
Related concepts:
About OSGi ApplicationsRelated tasks:
Secure OSGi Applications
Administer bundles in the internal bundle repository
Administer bundles in the internal bundle repository using wsadminRelated reference:
listLocalRepositoryBundles command
addLocalRepositoryBundle command
removeLocalRepositoryBundle command
showLocalRepositoryBundle command
OSGi Applications: Troubleshooting tipsRelated information:
Internal bundle repository [Collection]
Internal bundle repository [Settings]
Upload bundle [Settings]
Reference topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.