Germany is suspending military training operations in Iraq due to increasing regional tensions, a spokesman for the Defence Ministry said on Wednesday.
Germany has no indications of its own of attacks supported by Iran, he said. He added that training programmes could resume in the coming days.
Focus Online said the decision had been taken in coordination with partner countries fighting Islamic State in the region.
A spokesman for the German Defence Ministry said the German armed forces had 160 soldiers involved in the training deployment in Iraq.
The Dutch government also suspended a mission in Iraq that provides assistance to local authorities due to a security threat, Dutch news agency ANP reported on Wednesday.
Dutch military personal help train Iraqi forces in Erbil, northern Iraq, along with other foreign troops.
Washington ordered the departure of non-emergency government employees from Iraq earlier on Wednesday, after repeated U.S. expressions of concern about threats from Iranian-backed forces.
The U.S. State Department has ordered the pullout of the employees from both the U.S. Embassy in Baghdad and its consulate in Erbil, the embassy said in a statement.
"Normal visa services at both posts will be temporarily suspended," it said, recommending those affected depart as soon as possible. It was unclear how many staff would leave.
On Tuesday, the U.S. military reaffirmed concerns about possible imminent threats from Iran to its troops in Iraq, although a senior British commander cast doubt on that and Tehran has called it "psychological warfare."
U.S. President Donald Trump's administration has stepped up sanctions pressure by ending waivers for some countries to purchase Iranian oil - part of efforts to roll back the Islamic Republic's expanding regional clout.
Iraqi Prime Minister Adel Abdul Mahdi said on Tuesday he was getting indications from talks with both the United States and Iran that "things will end well" despite the rhetoric.
Washington has sent additional military forces to the Middle East, including an aircraft carrier, B-52 bombers and Patriot missiles in a show of force against what U.S. officials have said is a threat to its troops and interests in the region.
A senior Iranian Revolutionary Guards commander has said Tehran would retaliate against any aggressive U.S. moves.
A U.S. State Department spokesman said the decision to withdraw non-emergency staff was based on a security assessment, but would not give details on how many personnel were leaving.
"Ensuring the safety of U.S. government personnel and citizens is our highest priority and we are confident in the Iraqi security services' (ability) to protect us," he said.