Pot (although the absolute least harmful of any drug on the planet) is one of the hardest to pass in a drug-test. It's because the THC chemical is stored in a persons fatty tissue. A moderate smoker can usually pass a urinalysis after about 10 days clean. Chronic users will need 14-30 days clean to pass. Don't count on detox drinks or pills. They promise and even guarantee you to pass, but what good is that promise ater you get fired for failing. THEY don't WORK! If you have advance notice, water, water and more water. Don't give them your first pee of the day either. Catch the pee after letting the first few seconds go in the toilet and don't try to dilute it with chemicals, you are very likely to get caught "masking" and you will ether be failed or recalled.
If you can't do it honestly, or just quit, try drinking as much lemonade, add extra lemons, as much as you can take sour. There are many chemicals you can buy online, but non of them is 100% efficient, so I wouldn't recommend that.
Just clean your system.
If it's a pee test, put a drop of bleach or visene in it.
Or drink A LOTTTTT of vinegar.
Or drink A LOTTTTT of vinegar.