csharp how to remove an image in a folder

Code Example - csharp how to remove an image in a folder

                
                        var filePath = Server.MapPath("~/Images/" + filename);
if(File.Exists(filePath))
{
    File.Delete(filePath);
}