Important: This documentation covers Yarn 2. For the 1.x doc, check classic.yarnpkg.com.
Yarn
yarn addyarn binyarn cache cleanyarn config getyarn config setyarn configyarn constraints queryyarn constraints sourceyarn constraintsyarn dlxyarn inityarn installyarn linkyarn nodeyarn npm infoyarn npm loginyarn npm publishyarn npm whoamiyarn packyarn patch-commityarn patchyarn plugin importyarn plugin listyarn plugin runtimeyarn rebuildyarn removeyarn runyarn set resolutionyarn set version from sourcesyarn set versionyarn stageyarn unplugyarn upyarn upgrade-interactiveyarn version applyyarn version checkyarn versionyarn whyyarn workspaceyarn workspaces foreachyarn workspaces list

yarn remove

Remove dependencies from the project.

Usage

$> yarn remove [-A,--all] ...

Examples

Remove a dependency from the current project :

yarn remove lodash

Remove a dependency from all workspaces at once :

yarn remove lodash --all

Details

This command will remove the specified packages from the current workspace.

If the -A,--all option is set, the operation will be applied to all workspaces from the current project.