I have a user collection and a subcollection for pending requests. When an authenticated user follows a private account, the follow request is added to the pending requests subcollection. If the user accidentally clicks to follow and wants to undo it, they can click on "Cancel Request."
I want the "Cancel Request" feature to delete the specific document associated with the authenticated user from the subcollection. However, currently, when I click "Cancel Request," it deletes the first document in the subcollection instead of the one linked to the authenticated user.