How do I delete folders from WindowsApps safely?
How do I delete folders from WindowsApps safely?
@AndrewWissler-0704 You mean you want to delete folders programmatically in uwp app, right? If yes, you could use StorageFolder.DeleteAsync method to do this.
Thank you very much. Your information is greatly appreciated.
@AndrewWissler-0704 It's my pleasure to help you. I have converted the comment as an answer, you could accept the existing answer, which will help others that facing the same question.
Hi,
Welcome to Microsoft Q&A!
StorageFolder.DeleteAsync method is native API in uwp, which is more suitable for operations on the file system in uwp. Therefore, it is recommended to use this API to delete folders from uwp app.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
7 people are following this question.