Problem Description
I installed a package with composer, and it installed many other packages as dependencies.
Now I uninstalled the main package with `composer remove packageauthor/packagename`, but all the old dependencies were not removed. I expected composer to clean up and only keep packages that are required according to `composer.json` and their dependencies.
How can I force composer to clean up and remove all unused packages ?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?