unset

Remove a variable or function

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Deletes shell variables and functions. See the flags and examples below, and run `man unset` for the full reference.

Common flags
FlagMeaning
-vVariable
-fFunction
Examples
unset AWS_PROFILEClear the AWS profile variable · explain & risk-check →
Related
export env
Open the full explainer →More in Shell & Scripting

Reference text is hand-written and may be incomplete — check man unset for your version. Test destructive commands on a non-production system first.