VB.NET
System.IO.File.Delete(Server.MapPath('wnew.txt'))
C#
System.IO.File.Delete(Server.MapPath('wnew.txt'))
Make sure that you have permissions to delete a file.
VB.NET
System.IO.File.Delete(Server.MapPath('wnew.txt'))
C#
System.IO.File.Delete(Server.MapPath('wnew.txt'))
Make sure that you have permissions to delete a file.
Share with