First look for what kernels you have installed.
rpm -qa |grep kernel
it should give you for example:
Spot the older kernel you want to remove, in this case the 2.6.17.....
Use yum to remove it:
yum -y remove kernel-2.6.17*
That should do the trick.