zypper remove --clean-deps removes automatically installed requirements when removing a package. zypper packages --unneeded will show a list of packages no longer required.
Setting solver.onlyRequires to true in /etc/zypp.conf does not install recommends - it’s way less of a problem than on Debian/Ubuntu due to not recommending half the world, but still useful. Setting solver.cleandepsOnRemove will automatically remove automatically installed deps when removing a package (i.e., like always specifying --clean-deps).
Note that those are deepseek, not chatgpt. I’ve largely given up on chatgpt a long time ago as it has severe limitations on what you can ask it without fighting its filters. You can make it go on hallucinated rants just as easily - I just nowadays do that on locally hostable models.