Live Chat Icon For mobile
Live Chat Icon

How to delete a file from the server?

Platform: ASP.NET| Category: Files

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

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.