android studio default data internal storage 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: write storage permission android
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />