Turkey has replaced its top three military commanders in the army, navy and air force, Presidential spokesperson said on Wednesday.

President Recep Tayyip Erdogan agreed to the changes, his spokesperson Ibrahim Kalin said, after a four-hour meeting in Ankara chaired by Prime Minister Binali Yildirim.

Kalin said that their tenure was over and did not provide other details.

Military Chief of Staff, General Hulusi Akar retained his position.

The changes were made during a meeting of the Supreme Military Council, the highest body responsible for appointments and removals within the armed forces.

Since the failed coup in July 2016, 151 generals have been arrested, along with 1,600 other officers, said Interior Minister Efkan Ala in July.

In all, about 5,200 soldiers have been arrested.