Db::truncate() 

\nn\t3::Db()->truncate($table = ''); 

Empty database table. Deletes all entries in the specified table and resets the auto-increment value to 0.

\nn\t3::Db()->truncate('table');
Copied!
@param string $table
@return boolean

Source Code 

public function truncate ( $table = '' )
{
	$connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable( $table );
	return $connection->truncate( $table );
}
Copied!