kowal.info

Delete Products via Queue

Composer kowal/module-deleteproductsqueue · Version 1.0.44

Product page

Delete Products via Queue — kowal.co

Description

Queue the products selected in Admin for deletion. A consumer removes them by SKU outside the browser request.

For whom

For catalog administrators who need to separate selecting products from running deletions in the background.

Features

  • Delete via Queue mass action in the catalog.
  • Database-backed kowal.delete_product queue.
  • Product repository deletion and cleanup of remaining product URL rewrites.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-deleteproductsqueue
bin/magento module:enable Kowal_DeleteProductsQueue
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. On staging, check that bin/magento queue:consumers:list includes kowal.delete_product.
  2. Under Catalog → Products, select only a disposable test product. Choose Delete via Queue from the mass actions menu.
  3. The consumer name is kowal.delete_product. If your store does not manage it through its scheduler, start it on staging with bin/magento queue:consumers:start kowal.delete_product.

Requirements / notes

Product deletion is permanent. Version 1.0.44 logs processing errors and can acknowledge the queue message even after an error. Verify the result for the individual SKU.

FAQ

Why is the product still visible after I run the Admin action?

The action submits work to the queue. Check the consumer, Magento logs and the actual SKU in the catalog. An empty queue alone does not confirm deletion.

Verify the installation

bin/magento module:status Kowal_DeleteProductsQueue

Use an isolated staging queue and one disposable SKU. After processing, check that the product is absent from the grid and inspect its former URL. Confirm that a second, unselected product can still be opened.