application/Espo/Core/Upgrades/Actions/Extension/Install.php
protected function uninstallExtension()
    {
        $extensionEntity = $this->getExtensionEntity();

        $this->executeAction(ExtensionManager::UNINSTALL, array(
                'id' => $extensionEntity->get('id'),
                'skipSystemRebuild' => true,
                'skipAfterScript' => true,
            )
        );
    }
protected function uninstallExtension()
    {
        $extensionEntity = $this->getExtensionEntity();

        $this->executeAction(ExtensionManager::UNINSTALL, array(
                'id' => $extensionEntity->get('id'),
                'skipSystemRebuild' => true,
                'skipAfterScript' => true,
            )
        );
    }
protected function uninstallExtension ( ) { $ extensionEntity = $ this -> getExtensionEntity ( ) ; $ this -> executeAction ( ExtensionManager :: UNINSTALL , array ( 'id' => $ extensionEntity -> get ( 'id' ) , 'skipSystemRebuild' => true , 'skipAfterScript' => true , ) ) ; }
If extension already installed, uninstall an old version

@return void
If extension already installed uninstall an old version