MediaImageDeleteProcessor
Magento\Catalog\Model\ResourceModel\MediaImageDeleteProcessor
What it does
This class handles the deletion of product images from both the database and filesystem when a product is deleted.
It ensures images are only physically removed if they're not being used by other products, preventing accidental deletion of shared media files.
Developers typically don't call this directly - it's invoked automatically as part of Magento's product deletion process.
Public Methods
- execute()