yarn set version removes node_modules code example
Example 1: yarn remove package
yarn remove `package`
Example 2: yarn uninstall
just do: yarn remove [package-name]
yarn remove `package`
just do: yarn remove [package-name]