SyntaxFix
Write A Post
Hire A Developer
Questions
You can't delete an File array. As all of the other answers suggest, you must delete each individual file before deleting the folder...
File
final File[] files = outputFolder.listFiles(); for (File f: files) f.delete(); outputFolder.delete();