It’s easy to do file deletion operation in LotusScript using Kill
Statement. How to achieve the same thing in XPages using SSJS?
I tried below code but nothing happened:
var file:java.io.File = new java.io.File("FilePath");
file.getClass().getMethod("delete", null).invoke(file, new java.lang.Object[0]);