Skip to content

Code Blog

Preserving Knowledge

Posted on February 21, 2017February 21, 2017 by Anthony

Delete File in C#

string path = Server.MapPath("/Uploads/Users/xxxxx/file.png");
if ((System.IO.File.Exists(path)))
{
System.IO.File.Delete(path);
}

CategoriesCSharp TagsAsp.Net

Post navigation

Previous PostPrevious Customizing PagedList.Mvc
Next PostNext Increasing IIS Upload Limit

Recent Posts

  • JPQL Single-Point Association
  • To and From Date (Java)
  • Check Leap Year
  • JPQL: Custom TypedQuery
  • Facebook External Login Access Denied

Tags

.htaccess Apache Asp.Net CentOS Code First Migration Content Delivery Network CDN Cron Job Entity Framework Facebook Fluent API Google Calendar JPA Laravel MySQL PHP PHPMyAdmin SEO Sublime Text Ubuntu WordPress Xampp

Archives

  • April 2017
  • March 2017
  • February 2017
Proudly powered by WordPress