Unfortunately, one cannot do that. Only a licensed doctor can help you. They may give you an injection and send you on your way, it could be that simple. However, there is no answer to how to get rid of STDs at home.