'Clear history and delete all trace files.'

def clear(self):

    if (self._db is None):
        return
    if self._db.table_exists(self.get_table_name()):
        self._db.clear_table(self.get_table_name()).result()
    self._db = None
    rmtree(self._session_dir, ignore_errors=True)
    return True
