File dir = getFilesDir();
File file = new File(dir, "my_filename");
boolean deleted = file.delete();
More Related Contents:
- Android file chooser [closed]
- How to read file from res/raw by name
- How do I serialize an object and save it to a file in Android?
- Creating temporary files in Android
- How to delete a whole folder and content?
- Android; Check if file exists without creating a new one
- Trying to create a file in Android: open failed: EROFS (Read-only file system)
- Android SAF (Storage Access FrameWork): Get particular file Uri from TreeUri
- How to pass a file path which is in assets folder to File(String path)? [duplicate]
- How to create/write file in the root of the Android device?
- Delete file from internal storage
- How app can access files on USB OTG storages in Android 6.0 (API level 23) without root?
- OpenCV in Android Studio
- Calculate compass bearing / heading to location in Android
- Can I override the ‘Home’ button in my application?
- Why does Eclipse automatically add appcompat v7 library support whenever I create a new project?
- How to obtain Signing certificate fingerprint (SHA1) for OAuth 2.0 on Android?
- EditText loses content on scroll in ListView
- Android onCreate or onStartCommand for starting service
- findViewById not working for an include?
- Notify Observer when item is added to List of LiveData
- How to correctly use Google Plus Sign In with multiple activities?
- Android detect Done key press for OnScreen Keyboard
- What is the purpose of “android.intent.category.DEFAULT”?
- Where does Android View.scrollTo(x, y) scroll to?
- Android – how to set an alarm to a specific date
- Error while Launching activity
- Android : Is there anyway to get battery capacity of a device in mah?
- Hide AppBar when scrolling down
- How to use offline bundle on android for react native project?