I have an application with plenty of third-party packages in it, some of them are not required, and few packages have many versions installed in the environment.
Is there any tool or method to detect those redundant packages and remove those, so that the application size can be reduced??
Currently, I'm listing the all packages performing the tests removing individual packages one by one, if the tests passed removing the packages, any better approach??