The mayor shall have such powers and duties as may be provided by ordinance not inconsistent with this act. The mayor and council shall appoint a city attorney and members of boards and commissions and shall determine their duties and compensation. The city attorney shall be appointed for an indefinite term but may be removed by a majority vote of the mayor and council after ten (10) days' notice to the city attorney. Such action shall be at a meeting at which the mayor and councilmen are all present.