How to destroy a village completely?

I'm looking to make an iron golem farm in minecraft. However there's a village right outside my house, will destroying the houses and killing the villagers make the game no longer consider it a village so I make the iron golem farm, or do I just need to make it far away, if so how far does it need to be?

I think one golem spawns per 10 villagers so gather them in a cqge or somthing and you can destroy the houses

You can just delete the doors or windows from the village houses. The game doesn't consider them a house if they have no door or blocks are missing.