def _remove_social_if_found(self, account_type):
        s = self.profile.SocialAccount()
        st = s.SocialType.Value(account_type.upper())
        for social_account in self.profile.social:
            if social_account.type == st:
                self.profile.social.remove(social_account)
        self.db.profile.set_proto(self.profile.SerializeToString())
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/market/profile.py/Profile._remove_social_if_found/original