Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
empty_quote_rollback.php
Go to the documentation of this file.
1 <?php
8 $quote = $objectManager->create(\Magento\Quote\Model\Quote::class);
9 $quote->load('reserved_order_id', 'reserved_order_id')
10  ->delete();
11 
12 $objectManager->create(\Magento\Quote\Model\QuoteIdMask::class)
13  ->delete($quote->getId());