When you’re done, tap Clear beside In Cart and confirm. Everything in your cart leaves the list and is saved to purchase history. Items tracked Automatic or Have It or Not are added to your pantry, unless the list has Purchases Update My Pantry turned off. One-time items are deleted, unless you keep them (below); one that’s on a planned meal stays on the meal.
If someone else in your household has things in the cart too, you choose Clear My Items (just what you picked up) or Clear Everyone’s Items. When you’re asked which one-time items to keep (below), it’s a Clear Everyone’s Items switch instead, off for just your items.
If you keep count of your food (Keep Count of What I Have in Settings → Keeping Count) and your cart has one-time items, Clear Cart first asks Keep in your pantry?. Each one-time item is checked, with the recipe it was for; uncheck any you won’t buy again, then tap Clear Cart. Each checked item becomes a pantry food set to Have It or Not and marked as on hand, or joins a pantry food that already has its name, and every recipe line with that name is linked to it, so meals that need it see you have it. Unchecked ones are bought just this once. If one was on your list for planned meals, those meals don’t ask for it again unless they need more.
Remove All in List Options is different: it empties the list without updating your pantry or saving purchase history. If some items are running low or needed for meals, Keep Those, Remove the Rest leaves them on. A message lets you Undo.