- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
deleteLineItems - Cart Module Reference
This documentation provides a reference to the deleteLineItems
method. This belongs to the Cart Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
deleteLineItems(ids, sharedContext?): Promise<void>#
This method deletes line items by their IDs.
Example#
Parameters#
ids
string[]The IDs of the line items.
Returns#
Promise
Promise<void>Resolves when the line items are deleted successfully.
deleteLineItems(id, sharedContext?): Promise<void>#
This method deletes a line item by its ID.
Example#
Parameters#
id
stringThe ID of the line item.
Returns#
Promise
Promise<void>Resolves when a line item is deleted successfully.
Was this page helpful?