Ask AI
Skip to main content

Delete media files

Function: Delete media files

This action allows you to permanently remove media files from your application's media library. This is useful for cleaning up unused images, videos, or documents, ensuring your application remains organized and efficient.

Input,

  • Media IDs: The unique identifiers for the media files you want to remove.
    • Type: A list of text values (strings).
    • Required: Yes.

Output,

This action does not produce any direct output. Its primary function is to perform the deletion of the specified media files.

Execution Flow,

Real-Life Examples,

Example 1: Deleting an old product image

Imagine you've updated your product catalog and an old image for a discontinued product is no longer needed.

  • Inputs:
    • Media IDs: ["product_image_old_model_123"]
  • Result: The image with the ID product_image_old_model_123 is permanently removed from your application's media library and storage.

Example 2: Cleaning up unused marketing banners

Your marketing team has finished a campaign, and the associated banner images are no longer active on your website. You want to remove them to keep your media library tidy.

  • Inputs:
    • Media IDs: ["banner_summer_sale_2023", "banner_new_arrivals_promo", "banner_clearance_event"]
  • Result: The three specified marketing banners are deleted from your application, freeing up storage space and decluttering your media assets.

Example 3: Removing user-uploaded documents after account closure

When a user closes their account, you might need to delete any documents they uploaded, such as profile pictures or personal files, to comply with data privacy regulations.

  • Inputs:
    • Media IDs: ["user_doc_profile_pic_john_doe_456", "user_doc_resume_john_doe_789"]
  • Result: The profile picture and resume document associated with John Doe's account are removed from the media library, ensuring their personal data is no longer stored.