How can i delete a file in /app/data

i need to delete a file for example(filename.txt) in /app/data/ folder of internal ram (not sd-card)
i know that i can use file.Delete (folder address,file address) but how i define folder name?
i test the "/data/app/" for folder address and it was wrong.
please help me
:sign0013: for my english
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
file.Delete(file.DirInternal,"filename.txt")

DirInternal is the Data directory of your app
 
Upvote 0
thanks.
but my question is:
if your device rooted and you install root explorer when you open root explorer in first page you see some folder for ex : sd-card , app, system,...
i say how can i delete a file in this app folder!!
not in file.Direinternal.
 
Upvote 0
thanks.
i test my code and when i press the button with this codes:

Sub btn_rpl_Click
File.Delete("/data/app","mytext.txt")
End Sub

in Logs tab i see no thing.
(without filter in Logs tab)

can i use shell command to delete this file?
when i want to go to /data/app directory this message was shown:
permission denid.

please help !!!
 
Upvote 0
Top