src/Response/View.php
public function unsetData ($field = null)
		{
			if ($field) {
				unset($this->viewData[$field]);
			} else {
				$this->viewData = array();
			}

			return $this;
		}
public function unsetData ($field = null)
		{
			if ($field) {
				unset($this->viewData[$field]);
			} else {
				$this->viewData = array();
			}

			return $this;
		}
public function unsetData ( $ field = null ) { if ( $ field ) { unset ( $ this -> viewData [ $ field ] ) ; } else { $ this -> viewData = array ( ) ; } return $ this ; }
Unsets data either by field or all fields

@api

@param mixed $field If set, will unset only a single field's data

@return self
Unsets data either by field or all fields