How to delete Database file created by Sqlite-net in Windows store application. I tried this
StorageFile sampleFile = await ApplicationData.Current.LocalFolder.GetFileAsync(databaseName);
sampleFile.DeleteAsync(StorageDeleteOption.Default);
but neither getting any exception nor file is getting deleted. What am i missing here ?
Try awaiting the DeleteAsync
as well
StorageFile sampleFile = await ApplicationData.Current.LocalFolder.GetFileAsync(databaseName);
await sampleFile.DeleteAsync(StorageDeleteOption.Default);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.