public function remove_model( $pk ) {

		$i = $this->get_model_index( $pk );

		if ( $i === - 1 ) {
			return false;
		}

		$this->remove( $i );

		return true;
	}
public function remove_model( $pk ) {

		$i = $this->get_model_index( $pk );

		if ( $i === - 1 ) {
			return false;
		}

		$this->remove( $i );

		return true;
	}
public function remove_model ( $ pk ) { $ i = $ this -> get_model_index ( $ pk ) ; if ( $ i === - 1 ) { return false ; } $ this -> remove ( $ i ) ; return true ; }
Remove a model from the collection.

@since 2.0

@param string|int $pk

@return bool
Remove a model from the collection .