deleteLineItems - Cart Module Reference
This documentation provides a reference to the deleteLineItems
method. This belongs to the Cart Module.
deleteLineItems(ids, sharedContext?): Promise<void>
This method deletes line items by their IDs.
Example
Parameters
ids
string[]RequiredThe IDs of the line items.
Returns
Promise
Promise<void>RequiredResolves when the line items are deleted successfully.
deleteLineItems(id, sharedContext?): Promise<void>
This method deletes a line item by its ID.
Example
Parameters
id
stringRequiredThe ID of the line item.
Returns
Promise
Promise<void>RequiredResolves when a line item is deleted successfully.
Was this section helpful?