If any person elected or appointed to office shall fail to file his oath of office or to give the bond or surety required for the due performance of the duties of his office within the required time, the council may declare the office vacant, unless he files the oath and gives the required bond or surety before the office is declared vacant.