Yes, I have done this. I didn't talk to my mom for over a year after I told her something in confidence and she betrayed it to my sister. I also didn't talk to my dad for a similar length of time after I called him out for being hypocritical about something. This made him very angry and I was perfectly content not to talk to him until he could live with what I said.
I have been on the verge of doing this to my sister. Our mother died a few months ago and since then my sis has verbally assaulted me numerous times. There is so much anger inside her that it terrifies me. And she doesn't see any redeeming value in me as a human being. Not a mirror I really want to look into. It seems to me that as much as she despises me, why would she even want me in her life? The only thing that keeps me in the relationship is that she's my sister. But ending the relationship is something I think about every time she slams me.