code: public void unschedule(URI uri) {
          synchronized (scheduledHandlers) {
              CamelLogger.LOGGER.debug("Unscheduling a deployment of endpoint {} from {}", uri, deploymentName);
              if (this.deployerService != null) {
                  this.deployerService.undeploy(uri);
              } else {
                  scheduledHandlers.remove(uri);
              }
          }
      }
docs: Either removes the given HTTP endpoint from the list of deployments scheduled for deployment or undeploys it
  instantly if the {@link #deployerService} is available.
  
  @param uri determines the path and protocol under which the HTTP endpoint should be exposed