An anxiety-ridden dog is stranded in Germany after being twice yanked off flights back home because he was too nervous to fly.

Joey, a 9-year-old beagle-Australian shepherd mix was set to fly home Wednesday to owners John and Dawn MacEnulty, who’ve waited a week and spent more than $1,800 in trying to get the skittish pooch returned from the Fatherland.

But on Tuesday, John said he received an email from Gradlyn Petshipping, the company handling Joey, saying he was too worked up to fly.

“They said he’s too agitated in there [his kennel] to fly and in fact too agitated for them to keep him, so I needed to come and get him,” John told The Post en route to O’Hare International Airport. “So right now, I’m on my way to O’Hare to catch a flight to Frankfurt and in the morning German time, I’m going to go pick up my dog from Gradlyn.”

The dog debacle unfolded last week when the MacEnultys, who are from St. Louis, Missouri, flew home to the US following the sudden death of John’s mother. The couple and their 20-year-old daughter had been living in Germany for a year.

The family booked their flight home for Last Thursday on United Airlines and tried to arrange the return of their 70-pound dog and cat, Molly, through the airline’s PetSafe system.

But the embattled airline — which recently apologized for the death a dog that was stored in an overhead bin — suspended PetSafe reservations beginning March 20.

United recommended that they use Gradlyn to fly the pets instead, John said.

Joey and Molly were about to fly to Chicago on a Lufthansa flight departing 30 minutes after the MacEnultys.

Molly arrived at O’Hare Thursday with no problem. Joey, however, was left behind in Frankfurt – which the family learned just after landing.

“I turned my phone back on and an urgent email pops up from Gradlyn saying Joey was pulled off the Lufthansa flight,” John said. “They said it was because he was acting anxious in the kennel.”

A second attempt to fly Joey home was scheduled for Wednesday, March 28 – but again, the pup was given the no-go because of anxiety.

Gradlyn CEO Kay Wissenbach emailed John Wednesday saying Joey damaged two airline-approved crates and that the dog was exhibiting “dramatic behaver [sic].”

“… No airline will fly Joey back to USA. All person at Frankfurt tried the best that Joey could fly, but it is too danger and high risk to fly him, as you probably know and understand,” she wrote.

John said Joey suffers from separation anxiety.

“He’s an anxious dog to begin with. He hates being in the kennel, he hates being separated from his people,” said John. “The problem is is that, that’s a situation that doesn’t improve the longer you keep him away — it can only get worse.”

John said once he arrives in Germany, he’s unsure what his options are to get the dog home.

Joey was given Xanax to initially fly to Germany a year ago but veterinarians there don’t want to medicate the dog.

“I just want my dog back,” John said. “And I just want some help instead of everyone saying it’s not our problem.”

A United spokesman said the MacEnultys didn’t have a confirmed reservation to fly their pets via PetSafe.

A spokeswoman for Lufthansa said Joey is being housed in a private pet hotel near the airport – though John said he’s gotten “conflicting” information as to the dog’s whereabouts.

“The No. 1 priority is the health and safety for our passengers – and this includes animals,” the spokeswoman said. “[Joey] was causing himself great harm and we can’t have that situation. We want to bring him home very much, so we must make sure he’s calm and fit to fly.”

In an email, Wissenbach expressed sympathy over Joey’s situation but said “in this case nobody is guilty.”

She also suggested hiring TV dog trainer Cesar Milan to train the dog to tolerate the crate —and charter him back to the US.