<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to delete file? in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/How-to-delete-file/m-p/51042#M14911</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have user uploaded file on my server. Now I need to delete those files.&lt;BR /&gt;When I'm using System.IO methods I'm getting&amp;nbsp;System.UnauthorizedAccessException&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Exception Details&lt;/STRONG&gt;: System.UnauthorizedAccessException: Access to the path 'D:\mywebsite\httpdocs\myfolder\1.jpg' is denied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FileInfo fi = new FileInfo(filename));
 if (fi.Exists)
 {
   fi.Delete();
 }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to delete file in programmatically?&lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 18:02:59 GMT</pubDate>
    <dc:creator>orthohin</dc:creator>
    <dc:date>2013-02-19T18:02:59Z</dc:date>
    <item>
      <title>How to delete file?</title>
      <link>https://business.forums.bt.com/t5/Archive/How-to-delete-file/m-p/51042#M14911</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have user uploaded file on my server. Now I need to delete those files.&lt;BR /&gt;When I'm using System.IO methods I'm getting&amp;nbsp;System.UnauthorizedAccessException&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Exception Details&lt;/STRONG&gt;: System.UnauthorizedAccessException: Access to the path 'D:\mywebsite\httpdocs\myfolder\1.jpg' is denied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FileInfo fi = new FileInfo(filename));
 if (fi.Exists)
 {
   fi.Delete();
 }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to delete file in programmatically?&lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 18:02:59 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/How-to-delete-file/m-p/51042#M14911</guid>
      <dc:creator>orthohin</dc:creator>
      <dc:date>2013-02-19T18:02:59Z</dc:date>
    </item>
  </channel>
</rss>

