Uh, J, guess you read the original post too quickly and missed this bit:
quote:
I thought maybe the problem was because the directory was not empty, but I made an empty test directory and the script didn't delete it.
Still, the SHELL solution is appropriate if there are files left in the directory.