Shopware icon

Shopware

Shopware

Actions778

Media → Delete Media

AI-generated

Overview

This node operation deletes a media item identified by its unique Id from the Shopware system. It is useful in scenarios where media files need to be programmatically removed, such as cleaning up unused images or videos from a digital asset management system integrated with Shopware.

Use Case Examples

  1. Deleting a product image by its media Id to free up storage.
  2. Removing outdated promotional media files automatically as part of a scheduled workflow.

Properties

Name Meaning
Id Identifier for the media to be deleted, required to specify which media item to remove.
Response Data format for the response, can be left empty if no response data is needed.
Request Options Additional settings for the HTTP request such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • id - The identifier of the deleted media item.
  • status - Status of the delete operation, indicating success or failure.
  • message - Additional information or error message related to the delete operation.

Dependencies

  • Requires Shopware API credentials for authentication and access to the Shopware admin API.

Troubleshooting

  • Ensure the media Id provided is valid and exists in the Shopware system to avoid 'not found' errors.
  • Check API credentials and permissions to confirm the node has rights to delete media items.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or verify the SSL certificate validity.
  • Timeout errors may require increasing the timeout setting in request options.

Discussion