Definition of pick up one's marbles and go home in US English:

pick up one's marbles and go home

phrase

North American
informal
  • Withdraw petulantly from an activity after having suffered a setback.

    ‘he doesn't have the guts to take a bad defeat, and is now picking up his marbles and going home’
    • ‘And when he does not get his way threatens to pick up his marbles and go home.’
    • ‘I would hope he would recognize that this is not an appropriate location, pick up his marbles and go home, but we've long since given up hope on that.’