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
cartIdsstring[]RequiredThe list of cart IDs.
Returns
PromisePromise<void>RequiredResolves when the carts are deleted successfully.
delete(cartId, sharedContext?): Promise<void>
This method deletes a cart by its ID.
Example
Parameters
cartIdstringRequiredThe cart's ID.
Returns
PromisePromise<void>RequiredResolves when the carts are deleted successfully.
delete(ids, sharedContext?): Promise<void>
This method deletes carts by their IDs.
Example
Parameters
idsstring[]RequiredThe IDs of the cart.
Returns
PromisePromise<void>RequiredResolves when the carts are deleted successfully.
delete(id, sharedContext?): Promise<void>
This method deletes a cart by its ID.
Example
Parameters
idstringRequiredThe ID of the cart.
Returns
PromisePromise<void>RequiredResolves when a cart is deleted successfully.
Was this section helpful?