WordPress at a glance
function is not described

Composer\Installers

Installer::uninstall() public WC 1.0

{} It's a method of the class: Installer{}

No Hooks.

Return

null. Nothing.

Usage

$Installer = new Installer();
$Installer->uninstall( $repo, $package );
$repo(InstalledRepositoryinterface) (required)
-
$package(Packageinterface) (required)
-

Code of Installer::uninstall() WC 5.3.0

<?php
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
{
    $installPath = $this->getPackageBasePath($package);
    $io = $this->io;
    $outputStatus = function () use ($io, $installPath) {
        $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
    };

    $promise = parent::uninstall($repo, $package);

    // Composer v2 might return a promise here
    if ($promise instanceof PromiseInterface) {
        return $promise->then($outputStatus);
    }

    // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async)
    $outputStatus();

    return null;
}