Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting) > OSGiApplicationCommands: OSGi Applications administrative commands
removeLocalRepositoryBundle command
Use the removeLocalRepositoryBundle command to remove a bundle or composite bundle 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 a bundle or composite bundle from the internal bundle repository.
We cannot delete a bundle if it is contained in, or referenced by, a composite bundle. We must delete the composite bundle first, then delete the bundle.
Target object
The specified bundle.
Required parameters
-symbolicName bundle_symbolic_name
One of the following:
- The non-localizable name for this bundle.
- The bundle symbolic name of this composite bundle.
The bundle symbolic name, together with the bundle version, identifies a unique bundle.
-version bundle_version
One of the following:
- The version of this bundle.
- The version of this composite bundle.
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.
We can use the listLocalRepositoryBundles command to list the symbolic names and versions of the bundles currently held in the repository.
Conditional parameters
None
None
Optional parameters
Example
AdminTask.removeLocalRepositoryBundle('-symbolicName bundle_symbolic_name -version bundle_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
removeLocalRepositoryBundles 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.