system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Trek] Hass a member of the Federation ever been kicked out of the Federation?

I don't mean denied entry or voluntarily left. I mean a full on member of the Federation of Planets was removed because of something they did or some disagreement.   

Is there even a process to leave the Federation once you join? Is there a vote or something? A trial?  

What about the technical aspects? Like shared resources, technology, assets, space, and personnel?
gpt
It's hard to imagine there isn't a way to leave the Federation. Certain domestic policies and societal structures (like Bajor's caste system) preclude Federation membership. Surely a member wouldn't be allowed to end a caste system, join the federation, then re-implement their caste system without being booted.