Skip to content

Firebase Storage deletion fails in Run Mode using Custom Action #6843

@VicSim001

Description

@VicSim001

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When attempting to delete a file from Firebase Storage using a Custom Action, the deletion fails silently in Run/Test mode. The Firestore document is deleted correctly, but the physical file remains in the storage bucket. This happens even with completely open Storage Rules (allow read, write, delete: if true;).

Expected Behavior

The file located at the specified storage_path in Firebase Storage should be permanently deleted when the Custom Action is triggered.

Steps to Reproduce

  1. Create a loop that iterates through a list of documents.

  2. In the loop, delete the Firestore document.

  3. Pass the storage_path (URL) to a Custom Action.

  4. The Custom Action uses FirebaseStorage.instance.refFromURL(url).delete() or ref(path).delete().

  5. Observe that the file is still present in the Firebase Storage console.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4kjMmB04xJpbxH7qXpbcdspDsXG1B7TL07ttYbZxUjIuPtBJh/dc/OT1hpQs/gYHlhHFajuHgHw977vfOWC8BeGzWef7ZzzbhMFguXQXq8RcmtCc2oYHcnGeNWJkiiy7e73wknC/VvS04d7FyYIeqWQinDCZu/Zwh9f6PHaOI=

Visual documentation

Attached are screenshots showing the Action Flow loop, the Custom Action configuration with nullable String argument, the actual Dart code, and the file location in Firebase Storage as a reference.

Image Image Image Image Image Image

Environment

- FlutterFlow version:v3.1
- Platform:Web.
- Browser name and version:Chrome.
- Operating system and version affected:Windows 11.

Additional Information

This issue is critical for my application as it prevents users from managing their storage space. Despite following official integration steps and implementing multiple custom code workarounds (URL deletion and direct path extraction), the files remain in the bucket. This suggests a potential issue with how FlutterFlow handles Firebase Storage references in Run/Test mode. My development is currently blocked because of this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions