Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to delete images from the filesystem?

$
0
0

Hello.
I'm tryng to delete some image from my app, but I can't find anything that help me to do it.
I'm using xamarin forms.

I would like to delete a picture after take it.

After taking the photo, with de following code:

var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
{SaveToAlbum = false,
CustomPhotoSize = 50,
CompressionQuality = 50,
PhotoSize = new Plugin.Media.Abstractions.PhotoSize()
});

The images was saved inside the directory:

Android\data\MYAPP.Droid\files\Pictures

I would like to know if there someway to delete this images with the xamarin forms. And if will works in the iOS and WP to.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>