I have to delete a property file from the path specified. I used the following code:
File f1 = new File(\"C:\\\\Equinox\\\\UIDesign\\\\root\\\\root.properties\")
There are a couple of reasons why File.delete() can fail:
File.delete()
The last one could be your own fault, if you've opened a FileInput/OutputStream for that file and forgot to close it.