Should I block his number?

My ex wasn't a great person. He was very abusive, would steal things (even from me) would force me to have sex with him and the worst part of all is that he sells "illegal" stuff. I want nothing to do with him but here's the hard part we have a daughter involved in this mess. I want to block his number because he'll text me about seeing our daughter but then makes it about how I was mistake in his life. I feel like the abuse will never stop. What is the right thing to do? (Besides court)