Skip to content

How do i delete file from c-sharp

stephen barry

Asked Jun 22, 2013, 10:13 AM EDT1 answer
Share
LinkedInX
filestream in c#

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi stephen,

    just use:

    File.Delete("D:\\myfile.txt");

    Add reference to System.IO if you haven't done yet.


    Mark it as answer if it helps.
    Cheers!
    0