Good day.
YES, legal.
Eviction is carried out voluntarily and by court order.
If it is necessary to evict a person from an apartment, then an application for eviction must be submitted to the court (district, district in cities, city or city district) where the place of residence or stay of the defendant is registered according to the rules of civil procedure.
In order to legally evict a person from an apartment, it is necessary to prove that he systematically destroys or damages the apartment, violates the rules of cohabitation, which makes it impossible for others to live in the same apartment with him.