fish unset

Shell
set -e myvar
Source

Also in Shell: