code: def remove_declaration(self, decl):
          
  
          access_type = self.find_out_member_access_type(decl)
          if access_type == ACCESS_TYPES.PUBLIC:
              container = self.public_members
          elif access_type == ACCESS_TYPES.PROTECTED:
              container = self.protected_members
          else:  # decl.cache.access_type == ACCESS_TYPES.PRVATE
              container = self.private_members
          del container[container.index(decl)]
          decl.cache.reset()
docs: removes decl from  members list
  
          :param decl: declaration to be removed
          :type decl: :class:`declaration_t`