code: def remove_package(self, team, user, package):
          
          self.check_name(team, user, package)
  
          path = self.package_path(team, user, package)
          remove_objs = set()
          # TODO: do we really want to delete invisible dirs?
          if os.path.isdir(path):
              # Collect objects from all instances for potential cleanup
              contents_path = os.path.join(path, PackageStore.CONTENTS_DIR)
              for instance in os.listdir(contents_path):
                  pkg = self.get_package(team, user, package, pkghash=instance)
                  remove_objs.update(find_object_hashes(pkg))
              # Remove package manifests
              rmtree(path)
  
          return self.prune(remove_objs)
docs: Removes a package (all instances) from this store.