Skip to main content

Clear or Delete Media

The Clear and Delete Media actions provide essential functionalities for managing media files efficiently.

Clear Uploaded Data

By utilizing this action, you can clear the Uploaded File URL. This functionality is handy when you want to offer users a straightforward method to remove any uploaded media, such as images or recordings, by providing them with an explicit option to do so.

info

Before you use this action, you must have the Upload Data action already added.

Adding Clear Uploaded Data action

Follow the steps below to add this type of action to any widget:

  1. Select the Widget (e.g., Button) on which you want to add the action.
  2. Select Actions from the Properties panel (the right menu), and click + Add Action.
  3. Search and select the Clear Uploaded Data (under Utilities) > [Name of uploaded data] (given in the Upload Data) action.

Adding Clear Uploaded Data action

Delete Data

Using this action, you can delete the uploaded media, such as photos, videos, and PDF files, from the Firebase Storage or Supabase Storage.

info

Before you add this action, ensure you can access the Uploaded File URL of the media. Check out the upload media section to see how to get it.

Adding Delete Media action

Follow the steps below to add this action to any widget.

  1. Select the Widget (e.g., Button) on which you want to add the action.
  2. Select Actions from the Properties panel (the right menu), and click + Add Action.
  3. Search and select the Delete Media (under Utilities) action.
  4. Inside the URL section, provide a valid media URL. This must be either the direct Uploaded File URL or a variable that holds the URL.
  5. To let users know about the successful deletion of the media, you can add the snackbar message.