Answers for "delete folder with files c# if exists"

C#
3

c# delete file if exists

if(File.Exists(@"C:\test.txt"))
{
    File.Delete(@"C:\test.txt");
}
Posted by: Guest on January-15-2021
4

How to delete folder with files on c#

Directory.Delete(@"folderPath", true);
Posted by: Guest on December-06-2021

Code answers related to "delete folder with files c# if exists"

C# Answers by Framework

Browse Popular Code Answers by Language