How to unset global sdk set by fvm?

389 Views Asked by At

Global sdk can be set by the command: fvm global 3.x.x

But how do I revert this command? I was expecting somethig like:

fvm global unset

or

fvm reset global

In order to unset the global flag what I do not want to do:

  1. Set another version as global (fvm global 3.x.y)
  2. Remove the existing sdk cache (fvm remove 3.x.x # this is the global version)

Note: fvm global -h shows only the following outputs:

Sets Flutter SDK Version as a global

Usage: fvm global {version}
-h, --help    Print this usage information.

Run "fvm help" to see global options.
1

There are 1 best solutions below

0
On

For now, the workaround is to remove the default folder inside fvm

rm -rf $HOME/fvm/default