You need to be specific about what you mean by “remove landlords” because that’s a nonsensical statement by itself.
Some party must be responsible for the investment to produce the property. Some part must own the property.
The most charitable interpretation of what you’re trying to say would be that private rental contracts are forbidden and the government would have a monopoly on renting properties out. So only the government could own properties that are rented and the entire rental market would depend on how much housing the local government decided to build and manage.