The Israeli military says it will demolish all homes, a school and a mosque in a community that lies in the way of planned illegal settlement expansion.