The first step to removing a wine stain is to soak up any remaining wine on the carpet with an absorbent cloth. Then sprinkle salt generously over the stain and wet the surface of the stained carpet with white wine or vinegar.
Let the liquid soak on the surface of the carpet for 15 to 20 minutes, and then scrape it up off the carpet. The salt absorbs the color from the carpet. Soak up the excess moisture and dump lukewarm water on the stain if there is any remaining on the carpet. Then soak this up after a few minutes.