C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Delete File in Windows Runtime Apps
WhatsApp
Kishor Bikram Oli
Apr 24
2016
1
k
0
0
private
async Task<
string
> DeleteFileHelper(
string
fileName)
{
try
{
StorageFolder appFolder = ApplicationData.Current.LocalFolder;
StorageFile file = await appFolder.GetFileAsync(
fileName
);
await file.DeleteAsync();
return
"success"
;
}
catch
(Exception ex)
{
return
"fail"
;
}
}
C#
Metro Apps
Windows Runtime
Up Next
Delete File in Windows Runtime Apps