protected function removeFromTemplate($template, $field) {
		$t = $this->getTemplate($template);
		$f = $this->getField($field);
		$success = $t->fieldgroup->remove($f);
		$t->fieldgroup->save();
		return $success;
	}
protected function removeFromTemplate($template, $field) {
		$t = $this->getTemplate($template);
		$f = $this->getField($field);
		$success = $t->fieldgroup->remove($f);
		$t->fieldgroup->save();
		return $success;
	}
protected function removeFromTemplate ( $ template , $ field ) { $ t = $ this -> getTemplate ( $ template ) ; $ f = $ this -> getField ( $ field ) ; $ success = $ t -> fieldgroup -> remove ( $ f ) ; $ t -> fieldgroup -> save ( ) ; return $ success ; }
Removes a field from a template.
Also removes all data for that field from pages using the template.

@param Template|string   $template
@param Field|string      $field
@return bool     $success (true => success, false => failure)
@throws WireException
Removes a field from a template . Also removes all data for that field from pages using the template .