Answers for "delete all images from directory c#"

C#
1

C# how to remove an image in a folder

var filePath = Server.MapPath("~/Images/" + filename);
if(File.Exists(filePath))
{
    File.Delete(filePath);
}
Posted by: Guest on July-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language