Deleted file still appears in Directory.GetFiles result
<p>I have two webmethods. The first is:</p>

<pre><code>void deleteFile(string filePath)
{
  File.Delete(filePath);
}
</code></pre>

<p>The other is:</p>

<pre><code>string[] getAllFile()
{
  // at the same folder....
  Directory.GetFiles("*.xml");
  .....
  return ....   
}
</code></pre>

<p>I'm calling these methods like so:</p>

<pre><code>deleteFile("1.xml")
getAllFile();
</code></pre>

<p>Despite deleting the "1.xml" file, the call to <code>Directory.GetFiles("*.xml");</code> still returns "1.xml" in the results. In other words, it doesn't seem to have been deleted.</p>

<p>And then, when I loop the result ,  try to read the file  , get the FileNoFoundException</p>
