What is the meaning of Bogeyman?

A menacing, ghost-like monster in children's stories.

Any make-believe threat, especially one used to intimidate or distract.

Source: wiktionary.org