src/Shell/BasicSeedShell.php
protected function truncateTable($Table) {
		$truncateSql = $Table->schema()->truncateSql($Table->connection())[0];
		$success = $Table->connection()->query($truncateSql);
		if ($success) {
			$this->verbose("<success>{$Table->alias()}: Existing DB records truncated.</success>");
		} else {
			$this->quiet("<warning>{$Table->alias()}: Can not truncate existing records.</warning>");
		}

		return $success;
	}
protected function truncateTable($Table) {
		$truncateSql = $Table->schema()->truncateSql($Table->connection())[0];
		$success = $Table->connection()->query($truncateSql);
		if ($success) {
			$this->verbose("<success>{$Table->alias()}: Existing DB records truncated.</success>");
		} else {
			$this->quiet("<warning>{$Table->alias()}: Can not truncate existing records.</warning>");
		}

		return $success;
	}
Helper method that clears all records from the provided Table instance.

The default file is `config/seed.php`. When the `--dev` flag is
present, the default file changes to `config/seed_dev.php`. If
the `--file` option is present, it overrides everything else and
its value is used explicitly.

@param Cake\ORM\Table $Table The Table instance to TRUNCATE.
@return bool True on success truncation, false on failure.