- Home /
Delete screenshots from Gallery
I have made an app on iOS that takes a screenshot and saves it to a persistent data path. I can then use this to share the image. However, once it is shared I want to delete from the device.
I use something along the lines of
System.IO.File.Delete("/private" + Application.persistentDataPath+"/"+filename);
Which seems to delete it from the persistent data path, but it still shows up in the iPads gallery.
Any ideas?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612193213im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
File exists not working applicationDataPath 1 Answer
Persistent data path changes every time a new version of the IOS app is generated 1 Answer
how do I save photo to app / application directory iphone 0 Answers
Opening iOS and Android Photos to upload? 0 Answers
accessing ios photos folder at run time 0 Answers