CoreShop Cart Commands
Expire Abandoned Carts
# Delete only anonymous carts
$ bin/console coreshop:cart:expire --anonymous
# Delete only user carts
$ bin/console coreshop:cart:expire --user
# Delete carts older than 20 days
$ bin/console coreshop:cart:expire --days=20
Expire Abandoned Carts via maintenance job
By default, this feature is disabled. If you want to delete abandoned carts, you need to define an expiration date:
core_shop_order:
    expiration:
        cart:
            days: 20
            anonymous: true
            customer: true
Read more about automation here.