Hi, I'm trying to create an action to delete an unused picture uploaded through a form. I'm making this "remove" icon below be displayed only if a picture was uploaded.
Then in the remove icon I saw an "utility" action called clear uploaded data:
this works in my app, meaning that it's clearing the field variable locally (and returning the dog picture instead of the one they selected). but when I go to firebase storage I still see the picture there, it was not deleted. What am I doing wrong here? How can I make the picture delete so I don't use storage for nothing? the same action I wanted to have to the back icon, so if the user uploads something and don't save the picture will be seating in my storage for nothing :(
thanks a lot!