Hi Inside Out Cleaning
There are a number of ways to treat coffe/tea/ tanni removal. but a little more informationrequired before offering an answer, what type of carpet are we talking about and what has been attempted to remove the mark to date, Coffee, tea etc are not stains but new introduced dye and are therefore treated differently to normal stain removal.
Best regards Nick