Hello Community,
I am trying to check and delete a file from user’s device if it exists. For this, I am using the Taifun File Extension. What I am observing is, that the “Exists” is working perfectly but the “Delete” is not working.
Blocks:
I am getting the output on label: ‘EXISTS’ but when I check the file manager of my device, the file still exists in the directory and has not been deleted.
I am not getting any error. Am I missing something? Please help me to solve this problem.
using the file compnent or my file extension you only can delete files your app owns, see also Some basics on Android storage system
for other files you have to use SAF
Taifun
Thanks for replying,
I tried putting the content to the ASD, where the app should have access. But still, it’s not able to delete the file from there also.
Blocks:
What I want is my app should check if the device has the file downloaded in that location. It confirms to me if the user had deleted and reinstalled the app.
Hello,
I made a mistake when storing the file after downloading. I was using the Download2.Download in a foreach loop. This was making a sort of bug in the variable Lists of the screen. I removed the Download block from that foreach loop and put it in a Procedure based system Like this and it works now.