Live Webinar: Prompt Engineering: Skill Everyone Must Learn Today
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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
988
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#
Windows Runtime
Metro Apps
Up Next
Delete File in Windows Runtime Apps