Installed dependencies are not getting removed during uninstall

I’m using manjaro kde.
when I uninstall a program through the gui it’s dependencies are not being removed.
I recently ran the command sudo pacman -Rns $(pacman -Qdqt) and there are over 575mb of orphaned dependencies.

Is there any way to uninstall a program with it’s dependencies?

I use: pamac remove --orphans --unneeded <package>

Or use sudo pacman -Rsn $(pacman -Qdtq) ?

I found an option to do that from pamac or by using
sudo pacman -Rns

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.