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 .

Command-line help is provided:
  • For a list of the available OSGi Applications commands in Jython and a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('OSGiApplicationCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

After using the command, save your changes to the configuration repository by using the following command:

AdminConfig.save()

Purpose

This command removes bundles and composite bundles from the internal bundle repository.

You cannot remove composite bundles at the same time as you remove any bundles that they reference. You must first remove the composite bundles, then run the removeLocalRepositoryBundles command a second time to remove the referenced bundles.

You 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, uniquely identifies a 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
    '
])