Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# how to remove an image in a folder

var filePath = Server.MapPath("~/Images/" + filename);
if(File.Exists(filePath))
{
    File.Delete(filePath);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #image #folder
ADD COMMENT
Topic
Name
7+5 =