yarn uninstall unused packages code example
Example 1: how to uninstall a package with yarn
yarn remove <package_name>
Example 2: yarn remove
yarn remove <package name>
yarn remove <package_name>
yarn remove <package name>