TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Delete folder in Windows Runtime Apps
Kishor Bikram Oli
Apr 24
2016
Code
543
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
private
async Task<
string
> DeleteFolderHelper(
string
folderName)
{
try
{
string
appDataPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
StorageFolder appFolder = await StorageFolder.GetFolderFromPathAsync(appDataPath +
"\\"
+
folderName
);
await appFolder.DeleteAsync();
return
"success"
;
}
catch
(Exception ex)
{
return
"false"
;
}
}
C#
Windows Runtime
Metro Apps