Apple vinegar not only eliminates the color of your yellow nail, this sour fluid also gets rid of the bacteria that can cause an infection in your nails. Simply soak your nails in 1/2 cup of apple vinegar for 20 minutes. Dry well; You can repeat this treatment three times a day for a month.