The unsetenv function deletes all instances of the variable name pointed to by the name argument from the environment list.