Log in
Interface

DeleteContentAssetLinksByAssetIdsInterface

Magento\MediaContentApi\Api\DeleteContentAssetLinksByAssetIdsInterface

What it does

This interface defines a contract for deleting relationships between media assets and content in Magento 2.

Developers use this when they need to remove associations between media files (images, videos) and content entities (products, pages, blocks) by providing an array of asset IDs.

It's typically used during content cleanup operations or when media assets are being removed from the system.

Public Methods

  • execute()