Sorry about that, I should of tested my example on a folder with spaces, I suspect that was causing the issue.
Please try this revised command
Code:
{
/queue "%p%f"
/delete %p%f
}
I noticed that /queue requires a double-quoted path+name if it contains a space, however /delete doesn't and attempting to double-quote the path+name for /delete fails to strip off the double-quotes, so make sure you copy it as written.