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.