Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: SSJS - delete statement problem with java.io.File
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Error Message
Platform: Not Applicable
Release: 8.5.1
Reproducible: Always

I came across a bug in the DDE compiler for SSJS.
When trying to use the Java class "java.io.File" to access files on disk
and delete them the code can't compile:

var file:java.io.File = new java.io.File(filePath);
file.delete();

The "delete" keyword is not recognized:

Expected " "delete" "delete"" at line
Was expecting:
<IDENTIFIER>....


My question:
1) Is there another way to delete files on disk with XPages? I probably don't
know the class... or is there a workaround?

My current solution:
1) Writing an agent (LS,JAVA) and calling it from SSJS.


Feedback number WEBB877PZU created by ~Samuel Quetgerolitlen on 07/09/2010

Status: Closed
Comments: Thanks for the solution!

SSJS - delete statement problem wit... (~Samuel Quetger... 9.Jul.10)
. . Java Reflection (~Kelly Cisboosi... 8.Sep.10)
. . . . THANKS Roger! (~Tony Kiveluson... 30.Sep.10)
. . . . . . Lotus notes 8.0.1 Basic Supported o... (~Manny Reremarj... 8.Jun.13)
. . . . thanks to me too! (~James Zeknilit... 3.Nov.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS