Hi Nandy,
What is happening is no matter which card you are trying to delete, you are always only deleting the 1st line item. So, you will want to build in a "find" aspect. We have done this here at IDEXX, however based on the card key, not the expiration. I think it will help guide you though. We also had to use GUI recording in order to get the script to be able to select the correct CC to be deleted. Good luck!
------------------------------
Vanessa Kutasi | Application Analyst II
IDEXX | New England WUG Leader
------------------------------