Model
DeleteHandler
Magento\Catalog\Model\Product\Gallery\DeleteHandler
What it does
This class handles the deletion of all media gallery images and their related database records when a product is deleted in Magento 2.
Developers typically don't call this class directly - it's automatically invoked by Magento's entity manager as part of the product deletion process to ensure all associated gallery images and attribute values are properly cleaned up from the database.
Public Methods
- execute()