I want to cut all ties with my childs father: Thoughts?

Am I a bad mom for wanting to cut all ties with my child father he does nothing for our child or hardly ever sees our child my ex does nothing but stresses me out and threatens to take our child from me and other things and show up at my house randomly in the middle of the night trying to get money or to fight with me he blows my phone up and wakes my child up by showing up randomly and banging on the door and windows and blowing my phone up and every time my exes does this my child stays up for the rest of the night crying I feel like a shitty mom for thinking I just need to change my phone number and delete all social media accounts and move so he can’t find use I don’t know what else to do anymore