Meaning of “give up the ghost” - Learner’s Dictionary

give up the ghost

UK humorous

If a machine gives up the ghost, it stops working completely:

My car has given up the ghost.

(Definition of “give up the ghost” from the Cambridge Learner’s Dictionary © Cambridge University Press)