log.debug("Delete repository file: " + file);
IUserContentAccess access = contentAccessFactory.getUserContentAccess(null);
if( !access.fileExists(file) && access.hasAccess(file, FileAccess.DELETE)) {
throw new SaikuServiceException("Access to Repository has failed File does not exist or no delete right: " + file);
}
boolean ok = access.deleteFile(file);
if (!ok) {
throw new SaikuServiceException("Failed to write file: " + file);
}
return Response.ok().build();
}
catch(Exception e){
log.error("Cannot load file from repository (" + file + ")",e);