code: public void uninstallBundle(final String symbolicName, final String version) {
          Bundle bundle = bundleDeployerService.getExistingBundleBySymbolicName(symbolicName, version, null);
          if (bundle != null) {
              stateChanged = true;
              Logger.info("Uninstalling bundle: " + bundle);
              BundleStartLevel bundleStartLevel = bundle.adapt(BundleStartLevel.class);
              if (bundleStartLevel.getStartLevel() < currentFrameworkStartLevelValue) {
                  setFrameworkStartLevel(bundleStartLevel.getStartLevel());
              }
              try {
                  bundle.uninstall();
              } catch (BundleException e) {
                  Logger.error("Error during uninstalling bundle: " + bundle.toString(), e);
              }
          }
      }
docs: Uninstalling an existing bundle
  
  @param symbolicName
  The symbolicName of the bundle
  @param version
  The version of the bundle, optional. In case this parameter is null, the first bundle with the given
  symbolic name will be uninstalled.