You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UseCartFactoryParams > clear

UseCartFactoryParams.clear property

Signature:

clear: (context: Context, params: {
        currentCart: CART;
    }) => Promise<CART>;