Log in
Model

DeleteHandler

Magento\Catalog\Model\Product\Gallery\DeleteHandler

What it does

This class handles the deletion of all media gallery images and related database records when a product is deleted from the catalog.

Developers use this as part of Magento's entity deletion pipeline to ensure all product images and their references are properly removed from the database, preventing orphaned media records.

Public Methods

  • execute()