How long does it take a narcotic to leave your system?

For hydrocodone, oxycodone and its metabolites it detectable for up to 6 hours through blood and 72 hours in urine.