Access denied when trying to delete files with xp_cmdshell On a SQL Server 2012 SP2 instance the query

xp_cmdshell
'del \\morrison\backups\angelia\AS_ReportingServicesDW_MOLAP\ReportingServicesDW_MOLAP-20151116.abf'


fails with the output:


  Access is denied.


Both of these return the windows account running the SQL Engine and SQL Agent:

EXEC master..xp_cmdshell 'set username' 



  USERNAME=AngeliaSQL


EXEC xp_cmdshell 'whoami'



  ntdomain\angeliasql


The windows account has Full Control on the \morrison\backups\angelia\AS_ReportingServicesDW_MOLAP\ and all files in the folder.

Is there another way to check permissions?
You need to have a connection as well as permissions. SQL Server won't automatically connect to a network resource. You can do this either inside or outside of SQL Server but the connection has to be made on the machine. If there is a permission issue, then the 'net use' in the SQL query will return more info than just 'Access Denied'.

exec xp_cmdshell 'net use \\morrison\backups\angelia\AS_ReportingServicesDW_MOLAP mypassword /USER:ntdomain\angeliasql'

exec xp_cmdshell 'del \\morrison\backups\angelia\AS_ReportingServicesDW_MOLAP\ReportingServicesDW_MOLAP-20151116.abf'