Docs/Reference/CLI/unlink

yarn unlink

Unlink the current project from a previously linked one

yarn unlink <TARGETS…>

This command will remove any resolutions in the project-level manifest that would have been added via a yarn link with similar arguments.

If the --all flag is used without any arguments, Yarn will remove all resolutions that use the portal: protocol.

If the --all flag is used with a path argument, Yarn will unlink all workspaces from the specified project.

Otherwise, you can specify package names (with glob support) or paths to individual packages to unlink specific resolutions.

#--all, -Aboolean

Unlink all portal resolutions, or all workspaces from the target project