The US military has vacated its biggest airbase in Afghanistan as part of a final withdrawal from the war-torn country to be completed by the next months.