How do I get rid of him without ghosting?

So this guy has been playing games with me and even ghosted me a little bit. I’m tired of it. I’ve already tried to break up with him three times long time ago but he still contacts me like nothing happened.
How do I get rid of him without ghosting?
Post Opinion