Yarn
Cleans and removes unnecessary files from package dependencies. yarn autoclean [-I/--init] [-F/--force] The autoclean command frees up space by removing unnecessary files and folders from dependencies. It reduces the number of files in your project's node_modules folder which is useful in an environment where packages are checked into version control directly.
https://yarnpkg.com/lang/en/docs/cli/autoclean/