Deprecated: Breakdance\Lib\Vendor\Twig\Environment::getTemplateClass(): Implicitly marking parameter $index as nullable is deprecated, the explicit nullable type must be used instead in /home/xb23/htdocs/www.xb23.net/wp-content/plugins/breakdance/plugin/lib/mozart-scoped-psr4/Twig/Environment.php on line 262

Deprecated: Breakdance\Lib\Vendor\Twig\Environment::loadTemplate(): Implicitly marking parameter $index as nullable is deprecated, the explicit nullable type must be used instead in /home/xb23/htdocs/www.xb23.net/wp-content/plugins/breakdance/plugin/lib/mozart-scoped-psr4/Twig/Environment.php on line 330

Deprecated: Breakdance\Lib\Vendor\Twig\Environment::createTemplate(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in /home/xb23/htdocs/www.xb23.net/wp-content/plugins/breakdance/plugin/lib/mozart-scoped-psr4/Twig/Environment.php on line 386
Magento 2 – Deleting all Categories and Products – XB23.net

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/xb23/htdocs/www.xb23.net/wp-content/plugins/breakdance/plugin/lib/mozart-scoped-psr4/Twig/Extension/CoreExtension.php on line 1447

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /home/xb23/htdocs/www.xb23.net/wp-content/plugins/breakdance/plugin/lib/mozart-scoped-psr4/Twig/Extension/CoreExtension.php on line 1447

Magento 2 – Deleting all Categories and Products

Run this SQL

DELETE FROM `catalog_product_entity`;
DELETE FROM `catalog_category_entity` WHERE `entity_id` >= 3;
ALTER TABLE `catalog_category_entity` AUTO_INCREMENT = 3;
DELETE FROM `url_rewrite` WHERE entity_type = 'product';
DELETE FROM `url_rewrite` WHERE entity_type = 'category';
    Leave a Reply

    Your email address will not be published. Required fields are marked *