Green’s Dictionary of Slang

goodbye Charlie phr.

also goodbye McGinnis

(US) a phr. meaning ‘it is all over’, the end, the finish; usu. in phr. and it’s goodbye Charlie.

[US] (ref. to late 19C) N. Kimball Amer. Madam (1981) 20: I’d come awake, and then it was goodbye Charlie to sleep.
[NZ]F. Sargeson ‘White Man’s Burden’ in A Man And His Wife (1944) 15: If you once went on the bust in a place like this it was good-bye McGinnis.
[US]A. Kober Parm Me 165: Is good-bye Chollie with the boy, and he don’t come here no more.