I have set up a subcollection for Notifications under Users. The Notification collection works in a way, that when a given User 'likes/comments/joins/leaves' a post/event, the user who has posted gets a document in their subcollection for notifications.
Currently not working: When I delete the user, I want all associated subcollections to be deleted as well.
Example:
User with Ref:Qka (...) has left an event. which creates a notification under User with uid: Ryn (...)
When I delete user Qka(...) I can't get it to delete all associated notification documents across other users.
Any suggestion on what I might have done wrong?
Deleting a sub-collection document with a userRef
Resolved
1
4 replies