If I understand your question correctly; no, that is out of scope for deptry. Many of the dependency management tools already provide a way to do so, e.g. for PDM `pdm list --tree`.
You could provide diff of current tree vs tree after applying your suggested removals? It is more complex than that ?