Upon taking a medication, it might take a few hours or even a few days for the drugs to leave your body altogether. Depending on the dosage of the medication might take longer or shorter.