system/Database/BaseBuilder.php
public function emptyTable(bool $test = false)
	{
		$table = $this->QBFrom[0];

		$sql = $this->_delete($table);

		if ($test)
		{
			return $sql;
		}

		$this->resetWrite();

		return $this->db->query($sql, null, false);
	}
public function emptyTable(bool $test = false)
	{
		$table = $this->QBFrom[0];

		$sql = $this->_delete($table);

		if ($test)
		{
			return $sql;
		}

		$this->resetWrite();

		return $this->db->query($sql, null, false);
	}
Empty Table

Compiles a delete string and runs "DELETE FROM table"

@param  boolean $test
@return boolean    TRUE on success, FALSE on failure