Log in
Model

DeleteByPaths

Magento\MediaGallery\Model\Directory\Command\DeleteByPaths

What it does

This class handles the deletion of multiple directories from Magento's media gallery storage.

Developers would use this when programmatically removing media directories in bulk, such as during cleanup operations or when managing WYSIWYG editor content.

It validates paths against exclusion rules and logs failures while ensuring all deletion attempts are tracked.

Public Methods

  • execute()