unset
Unset the specified variables.
Parameters
Name | Type | Description |
---|---|---|
vars | string | string [] | Names of the variables to unset. |
Variable
Any variable can be unset by this method.
Examples
Unset a single variable
- YAML
- JSON
version: 1.0.0
sections:
main:
- unset: variable1
{
"version": "1.0.0",
"sections": {
"main": [{ "unset": "variable1" }]
}
}
Unset multiple variables
- YAML
- JSON
version: 1.0.0
sections:
main:
- unset:
- variable1
- variable2
{
"version": "1.0.0",
"sections": {
"main": [{ "unset": ["variable1", "variable2"] }]
}
}