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