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>