I can successfully add & remove individual lines to the cart as per Shopify Example
However, I’m looking to programmatically remove all lines from the cart. For this I understand I need to submit “lineIds” which is in format below. But how can I access the current list of cart “lineIds”?
"gid://shopify/CartLine/9a246774-e37b-4799-b498-fceaad2f09ad?cart=Z2NwLWV1cm9wZS13ZXN0NDowMUhXOEtTR05GOVdHUFo0NjMySlQzU1BCUw"
Is it a case of trying to Query the cart via graphiql but in this instance how do I fetch the Cart ID?
Any help is much appreciated!