public function delete($recursive = true) {
		$success = 0;
		$count = $this->getCount();
		$comments = $this->getAll()->setIncrementOffset(false);
		foreach ($comments as $comment) {
			if ($comment->delete($recursive)) {
				$success++;
			}
		}
		return ($success == $count);
	}
public function delete($recursive = true) {
		$success = 0;
		$count = $this->getCount();
		$comments = $this->getAll()->setIncrementOffset(false);
		foreach ($comments as $comment) {
			if ($comment->delete($recursive)) {
				$success++;
			}
		}
		return ($success == $count);
	}
public function delete ( $ recursive = true ) { $ success = 0 ; $ count = $ this -> getCount ( ) ; $ comments = $ this -> getAll ( ) -> setIncrementOffset ( false ) ; foreach ( $ comments as $ comment ) { if ( $ comment -> delete ( $ recursive ) ) { $ success ++ ; } } return ( $ success == $ count ) ; }
Delete all comments in a thread

@param bool $recursive Delete recursively
@return bool
Delete all comments in a thread