I am trying to delete a folder which has only files but no sub folders without success.
File rowFolder = new File(folderPath); String[] files = r
As you aren't checking the return value of delete(), the output you produce is meaningless. The deletion could have failed for any number of reasons: