if (!FileResponder.isInFilesDirectory(new File(context.getRootPagePath()), pathName)) {
return new ErrorResponder("Invalid path: " + pathName.getName()).makeResponse(context, request);
}
context.versionsController.delete(new FileVersion() {
@Override
public File getFile() {
return pathName;
}