Global Package
yarn global remove PACKAGE_NAME
Remove Package by tag or version
If you add package by tag
yarn global add vuepress@next
If you remove it by yarn global remove vuepress@next
you shall get the following error
[1/2] Removing module vuepress@next...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Use yarn global remove vuepress
instead.
Check available/installed packages.
yarn global list
Local Package
yarn remove PACKAGE_NAME
References: