Hi again Nicholas,
After doing some testing, I have found that this solution has a few issues.
I thought I would use this code to loop through the contents of the cart to delete all items present, before adding the new ones.
However setting the quantity to 0 does not seem to do the trick.
Another thing, if you add a product that is already in the cart, it will not add to the quantity field, but rather insert a new product in the cart. So you will have 2 identical products present in the cart.
If there is another way to simply empty the cart (ajax), please do let me know (apart from looping through and executing an ajax call for each item)