I'm trying to delete some files with .delete() method, but the method seems to be not working.
Example file directory: “/storage/emulated/0/Pictures/something/68419.jpg”
My code:
File deletefile = new File(path); //The path is in the format I said
boolean didIt = deletefile.delete()
//didIt is false
I am using write&read external storage permissions. The code was tested on Android 10.
Also, this person has the same code as me but theirs work, apparently. Android File.delete not working