code: public function remove(PackageInterface $package, $targetDir)
      {
          $downloader = $this->getDownloaderForInstalledPackage($package);
          if ($downloader) {
              $downloader->remove($package, $targetDir);
          }
      }
docs: Removes package from target dir.
  
  @param PackageInterface $package   package instance
  @param string           $targetDir target dir