1660s, "not to be desired, objectionable," from un- (1) "not" + desirable. The noun meaning "undesirable person or thing" is first attested 1883. Undesired "not asked or invited" is recorded from late 15c.
legislation excluding undesirable aliens
undesirable impurities in steel
rounding up vagrants and drunks and other undesirables