Delete/Empty cart

Hi, How can we delete or empty the cart in v3? I’d like to either do this when i close the cart or before anything gets added to the cart.

any pointers would be greateful

you are using the incorrect id man.

Snipcart.api.cart.items.remove(items[i].uniqueId);