How long does it take to have your system clean before you take an oral drug test?

It is best if you stay off the drugs for 30 days. The test may be able to show less trace if the usage was small. If there was not everyday use as well.