If this is a girl that you know is unavailable to you because she is currently in a relationship with someone else, you should accept that.
To get her out of your mind, you need to understand that she is not with you and thereby isn’t emotionally available to you.
You should avoid creating stories in your mind about how wonderful it would be to be in a relationship with her.
You need to stop fantasizing altogether about this girl.
The stories that you create in your mind about what a life with this girl would be like is often what keeps her in your mind.
By allowing these stories to persist, your mind makes her that much more real to you as it can’t tell the difference between whether this is truly a girl that you are dating or not.
It will just give you more of the images that satisfy you about this girl.
As a result, you could reach a point where it feels as though she is already your girlfriend, when she actually isn’t.
Whenever you find yourself beginning to think about her, you need to redirect your thoughts and attention to something else.
This would be a good time to start a new project or hobby.
You need to start spending more of your time engaged in those new activities.
This will often help in keeping yourself from daydreaming about her all day or for any extended period of time.
You should also do your best to avoid talking about her to people that you may know.
You shouldn’t bring her up as a topic of conversation.
If you find yourself in a situation where somebody brings her up as a topic of conversation, you should avoid engaging in this conversation.
Either change the topic or just excuse yourself from the conversation.
The more you stay away from talking about her, the less likely you will think about her.
You have to also make sure that you are not looking her up on social media.
If you are a follower of hers on her social media platforms, it may be a good idea to unfollow her at this time.
This doesn’t have to be a permanent measure.
However, being that you are trying to get this girl out of your mind at this time, it may be best that you unfollow her at this time.
This just gives you some time and distance away from the temptation of wanting to see what she is posting on social media.
You need this type of time and distance in order to break yourself away from the hold that she has over your mind.
To get her out of your mind, you need to fill that space with new challenges and relationships.
Put yourself in environments where you can meet new people and start getting to know them.
The process of getting to know new people will often take up a good amount of your time and mental energy.
This would often help to block out thoughts of her.
As time goes by and you are filling your mental space with all of this other elements, there will be less room to think about her.
Eventually, you will come to realize that you aren’t thinking about her at all.