Javascript
import HenrySDK from '@henrylabs/sdk'; const client = new HenrySDK({ apiKey: 'My API Key', }); const item = await client.cart.items.remove('productId', { 'x-user-id': 'x-user-id' }); console.log(item.message);
{ "success": true, "status": "<string>", "message": "<string>" }
Delete a product from the cart
The product ID to delete from cart
Cart item deleted successfully.