If delete is just a link, I don't understand why you would
loop in your delete action page to begin with. Assuming that your
delete link URL is something like:
http://myurl/delete_action_page.cfm?id=5
Then your delete_action_page would simply need to
delete from TempUsers
where TempID = #URL.ID#
You shouldn't need to loop to delete in your action page that
does the delete, but I am probably missing something...