It's much better for everyone, including your child, if you can agree on who stays in the family home. You may be able to get help towards the cost of mediation and legal advice if you and the other parent can't agree.
If you are not married to each other and the home is in your sole name, you can apply to the court for an order to exclude the other parent. You can't do this if you are married to each other or civil partners, unless there has been domestic violence against you by the person who is to be excluded.

