Stop thinking about someone

I would like to stop obsessing over this guy I met, and slept with. He took away his interest in me and I don’t want to stretch myself to make this relationship eventually work.
Is there a way to forget about someone, or better, to keep good memories but move on easily without drama?