Anyone have any success with updating vote averages or removing votes once you delete the node used to cast the vote?

I have a review content type with 4 voting axis referencing a node and users can review nodes and cast votes. If you delete a review though, it does not delete their votes since technically the votes belong to the node getting reviewed and not the review itself (I believe). Also, if a user edits their review and saves it, their vote gets added again to the average.

It looks like votingAPI has the necessary hooks to update/recalculate votes but I'm not exactly sure how to call these hooks and get the votes recalculated.