title: Remove-Item doesn't work, Delete does
body: <p>Does anyone have any idea why <code>Remove-Item</code> would fail while <code>Delete</code> works?  </p>
  
  <hr>
  
  <p>In below script, I get a list of files I'd like to delete.<br>
  Using <code>Remove-Item</code> I get following error message:</p>
  
  <blockquote>
    <p>VERBOSE: Performing the operation "Remove File" on target
    "\\UncPath\Folder\test.rtf".   Remove-Item : Cannot remove item
    \\UncPath\Folder\test.rtf: Access to the path is denied.</p>
  </blockquote>
  
  <p>but using <code>Delete</code> is deleting those files as we speak.</p>
  
  <p><strong>Script</strong></p>
  
  <pre><code>$files = gci \\UncPath\Folder| ?{ $_.LastWriteTime -le (Get-Date).addDays(-28) }
  
  # This doesn't work
  $files | Remove-Item -force -verbose
  
  # But this does
  $files | % { $_.Delete() }
  </code></pre>