Don't start over.. it won't help.
Move the code after the </html>
The session variable that holds the cart contents is called [cartname]_Items
Replace [cartname] with the name of your cart and add that to the Session variables to be deleted and the cart will be cleared as well.