delet file from path android

Solutions on MaxInterview for delet file from path android by the best coders in the world

showing results for - "delet file from path android"
Yves
11 Jan 2021
1File fdelete = new File(uri.getPath());
2if (fdelete.exists()) {
3    if (fdelete.delete()) {
4        System.out.println("file Deleted :" + uri.getPath());
5    } else {
6        System.out.println("file not Deleted :" + uri.getPath());
7    }
8}