I know this is old, but here's what I found when using a Service Account to create the file and delete it on a Shared Drive. Creating files was no problem, but the only way I found to make the deletion work was to add the Service Account as a "Manager" on the top level shared drive. It did not work if the Service Account only had Content Manager on a sub-folder.