This one may be quite unpleasant, especially if the area is infected. You need to pull up your toenail a little. If you notice that there is some infection or puss, you should better disinfect the area properly.
Take some cotton and soak it well in iodine or any other antibacterial cream. Pull your toenail up a little and try to place the cotton soak in antibacterial cream under it. Do not pull up too much, so that you do not cause more damage than good.
You should change the cotton every day within 15 days until your toe is properly healed. Also, it is important to trim your toenails on a regular basis so that the issue does not reoccur.
Only 15 days and you will get free of this unpleasant condition but it is a lot better to do everything possible to prevent it from happening at all!