original_docstring: 
          Remove entry from directory.
          Returns attributes of deleted DirEntry
          
docstring: Remove entry from directory.
  Returns attributes of deleted DirEntry
docstring_tokens: Remove entry from directory . Returns attributes of deleted DirEntry
code: def unregister(self, parent, key=None, return_entry=False):
          """
          Remove entry from directory.
          Returns attributes of deleted DirEntry
          """
          path = self._get_path(parent, key) if key else parent
          log.debug("Removing content at path %s" % path)
  
          direntry = self._read_by_path(path)
          if direntry:
              self.dir_store.delete(direntry)
              if self.events_enabled and self.container.has_capability(CCAP.EXCHANGE_MANAGER):
                  self.event_pub.publish_event(event_type="DirectoryModifiedEvent",
                                               origin=self.orgname + ".DIR", origin_type="DIR",
                                               key=key, parent=parent, org=self.orgname,
                                               sub_type="UNREGISTER." + parent[1:].replace("/", "."),
                                               mod_type=DirectoryModificationType.DELETE)
  
          if direntry and not return_entry:
              return direntry.attributes
          else:
              return direntry
code_tokens: def unregister ( self , parent , key = None , return_entry = False ) : path = self . _get_path ( parent , key ) if key else parent log . debug ( "Removing content at path %s" % path ) direntry = self . _read_by_path ( path ) if direntry : self . dir_store . delete ( direntry ) if self . events_enabled and self . container . has_capability ( CCAP . EXCHANGE_MANAGER ) : self . event_pub . publish_event ( event_type = "DirectoryModifiedEvent" , origin = self . orgname + ".DIR" , origin_type = "DIR" , key = key , parent = parent , org = self . orgname , sub_type = "UNREGISTER." + parent [ 1 : ] . replace ( "/" , "." ) , mod_type = DirectoryModificationType . DELETE ) if direntry and not return_entry : return direntry . attributes else : return direntry
short_docstring: Remove entry from directory.
short_docstring_tokens: Remove entry from directory .
comment: """
          Remove entry from directory.
          Returns attributes of deleted DirEntry
          """