For example, to completely remove all elements of kernel version 5.0.x, the following command would be entered:
sudo pacman -R linux50 linux50-headers linux50-extramodules