maxsap maxsap - 13 days ago 5
Android Question

How to delete internal storage file in android?

I have used the Android internal storage to save a file for my application (using

openFileOutput
) but I would like to delete that file, is it possible and how?

Answer
File dir = getFilesDir();
File file = new File(dir, "my_filename");
boolean deleted = file.delete();
Comments