The Ancient Greeks could vote someone into exile
In the democratic city-state of Athens in Ancient Greece, there was a procedure named Ostracism by which citizens could vote to expel someone from the city for 10 years. However, we have to remember that every citizen was, in practice, a politician since their democracy was a direct one.
Although it was not a pleasant experience, it was a much milder punishment than most others of the era. In reality, it was not so much a punitive measure as a preventative one and was mostly used to neutralize individuals that the state might have deemed dangerous or who could rise to power as an unwelcome tyrant.