android studio delete file code example
Example 1: delete files opened in mode private android
File dir = getFilesDir();
File file = new File(dir, "my_filename");
boolean deleted = file.delete();
Example 2: android studio delete text file
File dir = getFilesDir();
File file = new File(dir, "my_filename");
boolean deleted = file.delete();