@classmethod
    def remove_all(cls, game):
        try:
            path = join_path(config['gameprofile_db'], game.slug)
        except KeyError:
            LOG.error('gameprofile_db path config variable not set')
            return
        for f in listdir(path):
            split_ext = f.rsplit('.', 1)
            if split_ext[1] == 'txt':
                GameProfile(get_user(split_ext[0]), game).remove()
        try:
            rmdir(path)
        except __HOLE__:
            pass    # Skip if directory in use or not empty
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/apiv1/gameprofile.py/GameProfile.remove_all