code: def delete_account(self, account):
          
          try:
              luser = self._get_account(account.username)
              groups = luser['groups'].load(database=self._database)
              for group in groups:
                  changes = changeset(group, {})
                  changes = group.remove_member(changes, luser)
                  save(changes, database=self._database)
  
              delete(luser, database=self._database)
          except ObjectDoesNotExist:
              # it doesn't matter if it doesn't exist
              pass
docs: Account was deleted.