I have firebase storage files stored as following: PROJECT/location-images/{image}
I also have data in firebase realtime-database stored as following: PROJECT/users/{UID}/image (value is a string)
The question is.. Can I use firebase storage rules to find the user with a corresponding image and only then allow him to "delete" it.
One possible solution that I know of is to use customMetadata, but customMetadata can not be added directly to existing images. That means I would have to use my app to add every single image in storage one by one.