code: def remove_global(self, name):
          
          with self._lock:
              if self._gpayload is not None:
                  if name in self._gpayload:
                      del self._gpayload[name]
                  if not self._gpayload:
                      self._gpayload = None
docs: Args:
              name (str | unicode): Remove entry with `name` from global context