I would prefer @unlink() here unless you need the foo like rm -f semantics.