title: EXECUTE master.dbo.xp_delete_file folder permission issue
body: <p>I'm trying to run a Maintenance Cleanup Task to remove .bak files older than 2 days (simple enough).</p>
  
  <p>Been trying all variety of .bak, BAK, .*., and editing the path, but the files are still not getting removed even though I receive a "job succeeded" log message.</p>
  
  <p>I'm at the point where I believe it's a folder permission issue.</p>
  
  <p>How do I make sure my SA has the proper permissions to remove files from a folder?</p>
  
  <p>T-SQL:
  EXECUTE master.dbo.xp_delete_file 0,N'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\',N'BAK',N'2012-06-21T11:35:59',1</p>
  
  <p>Thanks.</p>