After commimt retrieve history objects from database with offset 10 ordered on date and delete that list.
Hi Rachana,
As Chirs mentioned, After commit check the count if more than 10 like 11 then retrieve history as database along with Created date assending order and amount as Count-10 here amount is 1 , and delete that list.
Hope it helps!
Thanks & Regards,
Manikandan K