/**
   * @param id
   * @param comment
   * @param siteId
   * @return
   * @throws Throwable
   */
  @PreAuthorize(
      "@tiiltaAuthorization.hasBenderPermission('TemplatingDjango', 'Site' , #siteId, @userService.getConnected(), #id)")
  @RequestMapping(value = "/bender/{siteId:.+}/resource/{id}", method = RequestMethod.DELETE)
  @ResponseBody
  public Map<String, Object> deleteResource(
      @PathVariable("id") String id,
      @RequestHeader("Comment") String comment,
      @PathVariable("siteId") String siteId)
      throws Throwable {

    Map<String, Object> result = new HashMap<>();
    Site site = siteService.getSite(siteId);
    if (site == null) {
      throw new ValidationException("le site est inconnu");
    }

    BenderResource resource = benderService.getResourceById(id, null);
    if (resource == null) {
      throw new ValidationException("Le fichier n'existe pas");
    }

    // supprimer la ressource de la base mongo
    benderService.deleteResource(resource, comment);

    result.put("response", true);
    return result;
  }