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:

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 parameters

A 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



Optional parameters

None


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 Applications

Related tasks:

Secure OSGi Applications
Administer bundles in the internal bundle repository
Administer bundles in the internal bundle repository using wsadmin

Related reference:

listLocalRepositoryBundles command
addLocalRepositoryBundle command
removeLocalRepositoryBundle command
showLocalRepositoryBundle command
OSGi Applications: Troubleshooting tips

Related 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.

+

Search Tips   |   Advanced Search