code: @Route(method = HttpMethod.DELETE, uri = "/{id}")
      public Result uninstallBundle(@Parameter("id") long id) {
          final Bundle bundle = context.getBundle(id);
          if (bundle == null) {
              return notFound("Bundle " + id + " not found");
          } else {
              return async(new Callable<Result>() {
                  @Override
                  public Result call() throws Exception {
                      try {
                          logger().info("Uninstalling bundle {}", bundle.getSymbolicName());
                          bundle.uninstall();
                          return ok();
                      } catch (BundleException e) {
                          logger().error("Cannot uninstall bundle {}", bundle.getSymbolicName(), e);
                          return badRequest(e);
                      }
                  }
              });
          }
      }
docs: Uninstalls the given bundle.
  
  @param id the bundle's id
  @return OK if the bundle is updated, BAD_REQUEST if an error occurs when the bundle is uninstalled,
  NOT_FOUND if there are no bundles with the given id.