Why don't you use _unlink to delete a file ?