No, it doesn't. A few things to check:
- Does $path contain the full path of the file, or the correct
relative path wrt the current directory for the program?
- Do you have permissions to delete it? (if the same program
created it, I would guess so, but permissions could always
change in the middle)
- Is that line actually being executed? Try inserting print
statements before and after it, to verify that.
--ZZamboni