Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jinhee.lee.3382's avatar
jinhee.lee.3382
Honored Guest
2 years ago

I cannot delete some file in Movies folder(Meta Quest 2)

 

I create an app with Unity and I'd like to delete a file in my "Movies" folder. 

However the file is not deleted(File is exist and i'm using File.delete) although my app has permission about external storage read/write.

here's my code. 

string filepath = @"/storage/emulated/0/Movies/myfile.txt";

if(File.Exists(filepath){

        File.Delete(filepath)

}

is there anyway to delete file?

 

 

 

No RepliesBe the first to reply