question about rm command

i have a lot of messages file in the var directory i want to delete

now i want to keep messages.1 to messages.10 and then delete everything else after 10 which is like 10 to 96

obviously i cant delete these files individual, can someone tell me the command to delete messages.11 to messages.96?

thank you

Try this

#!/bin/sh
COUNT=11
while [ $COUNT -le 96 ]
do
rm messages.$COUNT
COUNT=`echo $COUNT+1 |bc`
done