A city marshal or sheriff can evict you by law. A marshal or sheriff will have a badge and knock on your door. The marshal must serve you a notice before evicting you. The marshal will need permission from the judge. The judge will issue a warrant of eviction. Then the marshal will serve the eviction notice.
It is illegal for your landlord or anyone to lock you out.