Model
DeleteByDirectoryPath
Magento\MediaGallery\Model\Asset\Command\DeleteByDirectoryPath
What it does
This class deletes media gallery assets from the database based on a directory path.
Developers use it when they need to remove all media assets stored within a specific directory, such as during cleanup operations or when removing media content in bulk.
The class is deprecated and should be replaced with DeleteAssetsByPathInterface.
Public Methods
- execute()