unset VAR

Category: Shell & Bash

unset VAR

Remove a variable or function from the environment

Removes (unsets) a variable or function so it no longer exists in the shell environment.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.