You can get rid of a cold sore by applying some coconut oil to the cold sore.
The coconut oil is a good antimicrobial agent that will kill the virus and get rid of the cold sore since it also contains lauric acid.
Holding a cool damp cloth against the cold sore can also help to get rid of the cold sore as well as applying toothpaste to the cold sore to help dry it out and make the cold sore go away.