Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

yarn unlink

Unlink a previously created symlink for a package.

To remove a symlinked package created with yarn link, yarn unlink can be used.

Run yarn unlink in the folder that was previously used to create a link.

To unlink a package that was symlinked during development in your project, simply run yarn unlink [package]. You will need to run yarn install --check-files to re-install the package that was linked, for more info see issue 1957.

Continued example from the yarn link documentation: assume two folders react and react-relay that are located next to each other with react linked into the react-relay project:

$ cd react
$ yarn unlink
yarn link vx.x.x
success Unregistered "react".
$ cd ../react-relay
$ yarn unlink react
yarn link vx.x.x
success Unregistered "react".

Also see:

  • yarn link: symlink a package for local development.