Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
simple_product_20_rollback.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
11 
13 $objectManager = Bootstrap::getObjectManager();
14 
16 $productRepository = $objectManager->get(ProductRepositoryInterface::class);
17 $productRepository->deleteById('simple_20');