This code actually just moved, but you're right, it should be os.Unlink.