String deleteString = e.getPath(); File deleteListFile = new File(deleteString); deleteListFile.delete();
so to talk you through it, the File object is obtained by the results by system.out.println (not shown here)
...and then I am getting the path of the file by using getpath()
then i want that file path and its file deleted, but wen i go check in that folder its not deleted.
The list of files mathcing the criteria are listed correctly because they get displayed, just not deleted..