sudo pacman -Runs pkg-name
Works best and is preferable to pacman -Runs pkg-name
:
-u, --unneeded
, Removes the targets that are not required by any other packages. This is mostly useful when removing a group without using the -c option, to avoid breaking any dependencies.
-n, --nosave
, Removes configuration files
-s, --recursive
, Removes unnecessary dependencies