def METHOD_NAME(self, package_id: str) -> None:
    """
    Cleanup function to remove the package model from the list. Note that this is only done if the package can't
    be updated, it is in the to remove list and isn't in the to be installed list
    """
    package = self.getPackageModel(package_id)
    if package and not package.canUpdate and \
            package_id in self._package_manager.getToRemovePackageIDs() and \
            package_id not in self._package_manager.getPackagesToInstall():
        index = self.find("package", package_id)
        if index < 0:
            Logger.error(f"Could not find card in Listview corresponding with {package_id}")
            self.updatePackages()
            return
        self.removeItem(index)