Deletes a cart.
The deleteCart()
function returns a Promise that resolves when the specified cart is deleted.
function deleteCart(_id: string): Promise<void>;
ID of the cart to delete.
import { cart } from "@wix/ecom";
async function deleteCart(id) {
const response = await cart.deleteCart(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.