How to find templates and partials that are not used anymore

If something is missing, hugo throws errors. How can I find templates that are not used anymore after a refactoring?

Run the following command

hugo --printUnusedTemplates