yarn prune
The prune command isn’t necessary. yarn install will prune extraneous packages.
© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/cli/prune