yarn config unset — Yarn CLI reference

Remove a configuration value

Docs/Reference/CLI/config/unset

yarn config unset

Remove a configuration value

yarn config unset <NAME>

This command removes a configuration setting from the project configuration file by default. Use -H,--home to remove it from the home configuration file instead.

Removing the last key of an entry (for example npmScopes.foo.npmAlwaysAuth) also removes the entry itself, as it would otherwise be left empty.

#--home, -Hboolean

Remove the value from the home configuration file instead of the project file

Examples#

Unset a simple configuration setting

yarn config unset initScope

Unset a complex configuration setting

yarn config unset packageExtensions

Unset a nested configuration setting

yarn config unset npmScopes.company.npmRegistryServer

Unset a configuration setting from the home configuration file

yarn config unset -H initScope