The Nigerian government has fired four military chiefs as part of a process to strengthen the fight against terror group Boko Haram.
President Muhammadu Buhari sacked the army, navy, air force and defence chiefs as the Islamist insurgents continue to kill hundreds of people in the north east.
Government spokesperson Mike Omeri told IBTimes UK that Buhari made the decision to "re-engineer and add vigour to the military".
He said the move will strengthen "the fight against the insurgency and the credibility of the army".
Omeri also added that the decision has nothing to do with a report by Amnesty International alleging that Nigerian soldiers had committed war crimes and "caused 8,000 deaths".
"The president said he will investigate that and this decision was made to strengthen the army in the fight against terrorism," Omeri said.
Buhari's decision came as Boko Haram released an Isis-style beheading video weeks after it pledged allegiance to the Islamic State (IS) group, which controls large swathes of Syria and Iraq.
The footage, released weeks after Boko Haram renamed itself Islamic State's West African Province (Iswap), shows some of the insurgents fighting with presumed Nigerian soldiers.
Images then show the bodies of some Nigerian soldiers lying on the ground after a battle. The ten-minute-long video ends with the decapitation of a man believed to have been part of the African Union.
Buhari, who defeated former leader Goodluck Jonathan in March's presidential election, vowed his administration would end terrorism in the country. In June, he announced the military headquarters would be relocated from Abuja to Maiduguri until the fight against terrorism was over.
The US announced it would send military trainers to help the Nigerian army improve its intelligence gathering and logistics.
Boko Haram has intensified its attacks in recent months. A twin bomb attack blamed on the group killed at least 44 people and injured 67 in the provincial Nigerian capital of Jos earlier in July.
The explosions followed a suicide bomb attack in a church in the town of Potiskum earlier the same day. A priest and four worshippers were killed in the attack.