code: public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
      {
          if (!$repo->hasPackage($package)) {
              throw new \InvalidArgumentException('Package is not installed: '.$package);
          }
          $repo->removePackage($package);
      }
docs: {@inheritDoc}