Log in
Interface

DeleteAssetsByPathsInterface

Magento\MediaGalleryApi\Api\DeleteAssetsByPathsInterface

What it does

This interface defines a contract for deleting media assets from Magento's media gallery by their file paths.

Developers would use implementations of this interface when they need to programmatically remove media files, either by exact file paths or by directory paths (which removes all assets within that directory).

It's commonly used during asset cleanup operations, product import/export processes, or when managing media storage programmatically.

Public Methods

  • execute()