uninstall() public method

Uninstalls an extension.
public uninstall ( string $name )
$name string
 protected function delete(ServerRequestInterface $request)
 {
     $this->assertAdminAndSudo($request);
     $name = array_get($request->getQueryParams(), 'name');
     $this->extensions->disable($name);
     $this->extensions->uninstall($name);
 }
 protected function delete(ServerRequestInterface $request)
 {
     $this->assertAdmin($request->getAttribute('actor'));
     $name = array_get($request->getQueryParams(), 'name');
     $extension = $this->extensions->getExtension($name);
     $this->extensions->disable($extension);
     $this->extensions->uninstall($extension);
 }