code: def purge_metadata(self, force=False):
      
      if not force and self.is_alive():
        raise ProcessMetadataManager.MetadataError('cannot purge metadata for a running process!')
  
      super(ProcessManager, self).purge_metadata_by_name(self._name)
docs: Instance-based version of ProcessMetadataManager.purge_metadata_by_name() that checks
      for process liveness before purging metadata.
  
      :param bool force: If True, skip process liveness check before purging metadata.
      :raises: `ProcessManager.MetadataError` when OSError is encountered on metadata dir removal.