(idiomatic, archaic, chiefly US) To leave, particularly quickly or at an advantageous time. [ca. 1908—1923]
(idiomatic, archaic, chiefly US) To be forced to leave quickly. [ca. 1908—1923]
Source: en.wiktionary.orgAnd it supposedly is where the slang expression "23 skidoo" comes from because the police would come and give the voyeurs the 23 skidoo to tell them to get out of the area." Source: Internet
The iconic Flatiron Building is said to have been the source of the phrase " 23 skidoo " or scram, from what cops would shout at men who tried to get glimpses of women's dresses being blown up by the winds created by the triangular building. Source: Internet