joshuaokpako commented on issue #426:
URL:
https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-825089206
@victorvhpg I believe the new android 11 update will only allow you delete
files that are created by your app in the Download folder. I haven't tested
deleting any other file but I have used the code on ionic 4 to delete files I
created in the Download folder.
```
delelteFile(dir:DirectoryEntry,name) {
return new Promise((res, rej) => {
dir.getFile(name, {create: false}, function (fileEntry) {
fileEntry.remove( () =>{
res("deleted")
}, function (error) {
rej(error)
});
}, function () {
res("ok")
});
})
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]