Log in
Model

DeleteImage

Magento\MediaGalleryUi\Model\DeleteImage

What it does

This class handles the physical deletion of media gallery images from the file system.

Developers use this when they need to remove images from Magento's media storage, such as when deleting images through the admin media gallery interface.

It includes validation to prevent deletion of files in restricted directories and throws exceptions if deletion fails.

Public Methods

  • execute()