- Home /
Deleting file on android
Hey!
I have 'share' button in my game which shares some text with a screenshot, and I want to delete this screenshot once player shared it. I am using Application.CaptureScreenshot(shareScreenshotName); to capture screen and File.delete(shareScreenshotName); or File.delete(Application.persistendDataPath + shareScreenshotName); to delete the screenshot but none of them works.
Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612095215im_/https://answers.unity.com/themes/thub/images/avi.jpg)