Deletes the current site visitor's cart.
The deleteCurrentCart()
function returns a Promise that resolves when the current cart is deleted.
function deleteCurrentCart(): Promise<void>;
import { currentCart } from "@wix/ecom";
async function deleteCurrentCart() {
const response = await currentCart.deleteCurrentCart();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.