Use 'TRUNCATE TABLE' to truncate the given table

def truncate_table(self, tablename):
        """
        Use 'TRUNCATE TABLE' to truncate the given table
        """
        self.cursor.execute('TRUNCATE TABLE %s' %tablename)
        self.db.commit()