Remove/update existing cart attributes

Topic summary

A developer is seeking guidance on removing or updating existing cart attributes through Shopify’s cart API.

Technical Context:

  • The question involves using the cart update endpoint (/cart/update.js)
  • A code snippet was provided showing a jQuery POST request with an attributes object

Current Status:

  • The discussion appears to be a single inquiry with no responses yet
  • The question remains unanswered regarding whether cart attributes can be removed/updated via the API
  • This is relevant for custom storefront implementations using Liquid templating
Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

Hi!

Is there any way to remove/update existing cart attributes using cart API?

$.post('/cart/update.js',{
    attributes: {}
}).always(function(a,b,c){ 
    console.log(a);
});

Thanks!