How to Delete a File in C#/CSharp

How to Delete a File in C#/CSharp
Rating: 5 - 1 Votes

How to Delete a File in C#/CSharp

To delete a file in C#/CSharp, we make use of File class and its static method called Delete.  It will take path of the file as parameter.  Example is given below.