Washington (CNN) The US-led military coalition is leaving some of its smaller bases in Iraq following multiple rocket attacks on coalition bases in the country.

Two Americans and one British service member were killed and around a dozen others injured in an attack on al-Taji base last week.

"As a result of the success of Iraqi Security Forces in their fight against ISIS, the Coalition is re-positioning troops from a few smaller bases. These bases remain under Iraqi control and we will continue our advising partnership for the permanent defeat of Daesh from other Iraqi military bases," a coalition spokesman said in a statement.

Coalition officials stressed that the move to relocate was planned several months ago and was unrelated to the spate of recent rocket attacks.

But the move follows a number of rocket attacks on Iraqi bases in recent months where coalition forces were present, killing and wounding several US service members.

Read More