I have a function that I call with ?clear-cart appended to the end of my page; as you can probably guess, this function clears the user\'s cart.
?clear-cart
I call it l
You can write your cart clearing code in another script and have it redirect back to your page when it's done.