Question

I was wondering if it is possible to programmatically delete an image within the MediaLibrary. Currently I am using the CameraCaptureTask to capture an image and save, but I would like to be able to delete that image as well. Also, editing an image would be another consideration. Note, I am working with Windows Phone 8.

Was it helpful?

Solution

No, you can't programmatically delete images from the users Pictures MediaLibary.

"There is no way to delete any content from the user's library. Once you've saved a picture, the user will always have that picture unless they personally go delete it."
(Source Delete image from MediaLibrary.SavePictures).

If you need the ability to delete stored images you could store them in isolated storage and then have an option to publish them to the Media Library.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top