- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
deleteCarts - Cart Module Reference
This documentation provides a reference to the deleteCarts
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.
deleteCarts(cartIds, sharedContext?): Promise<void>#
This method deletes carts by their IDs.
Example#
Parameters#
cartIds
string[]The list of cart IDs.
Returns#
Promise
Promise<void>Resolves when the carts are deleted successfully.
deleteCarts(cartId, sharedContext?): Promise<void>#
This method deletes a cart by its ID.
Example#
Parameters#
cartId
stringThe cart's ID.
Returns#
Promise
Promise<void>Resolves when the carts are deleted successfully.
Was this page helpful?