We need to call file.exists() before file.delete() before we can delete a file E.g.
file.exists()
file.delete()
File file = ...; if (file.exists()){ fil
Use the below statement to delete any files:
FileUtils.forceDelete(FilePath);
Note: Use exception handling codes if you want to use.
exception handling