code: @DeleteOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
      public RegisteredService deleteService(@Selector final String id) {
          if (NumberUtils.isDigits(id)) {
              val svc = this.servicesManager.findServiceBy(Long.parseLong(id));
              if (svc != null) {
                  return this.servicesManager.delete(svc);
              }
          } else {
              val svc = this.servicesManager.findServiceBy(id);
              if (svc != null) {
                  return this.servicesManager.delete(svc);
              }
          }
          LOGGER.warn("Could not locate service definition by id [{}]", id);
          return null;
      }
docs: Delete registered service.
  
  @param id the id
  @return the registered service