Log in
Model

DeleteContentAssetLinks

Magento\MediaContent\Model\DeleteContentAssetLinks

What it does

This model class removes the associations between media assets (images, videos, etc.) and content entities in Magento 2.

Developers use this class when they need to unlink media files from content entities like products, categories, or CMS pages, such as when deleting or updating content that previously referenced those media assets.

Public Methods

  • execute()