Classes/Console/Command/ExtensionCommandController.php
public function deactivateCommand(array $extensionKeys)
    {
        // @deprecated for composer usage in 5.0 will be removed with 6.0
        $this->showDeprecationMessageIfApplicable();
        foreach ($extensionKeys as $extensionKey) {
            $this->getExtensionInstaller()->uninstall($extensionKey);
        }
        $extensionKeysAsString = implode('", "', $extensionKeys);
        if (count($extensionKeys) === 1) {
            $this->outputLine('<info>Extension "%s" is now inactive.</info>', [$extensionKeysAsString]);
        } else {
            $this->outputLine('<info>Extensions "%s" are now inactive.</info>', [$extensionKeysAsString]);
        }
    }
public function deactivateCommand(array $extensionKeys)
    {
        // @deprecated for composer usage in 5.0 will be removed with 6.0
        $this->showDeprecationMessageIfApplicable();
        foreach ($extensionKeys as $extensionKey) {
            $this->getExtensionInstaller()->uninstall($extensionKey);
        }
        $extensionKeysAsString = implode('", "', $extensionKeys);
        if (count($extensionKeys) === 1) {
            $this->outputLine('<info>Extension "%s" is now inactive.</info>', [$extensionKeysAsString]);
        } else {
            $this->outputLine('<info>Extensions "%s" are now inactive.</info>', [$extensionKeysAsString]);
        }
    }
Deactivate extension(s)

Deactivates one or more extensions by key.
Marks extensions as inactive in the system and clears caches for every deactivated extension.

This command is deprecated (and hidden) in Composer mode.

@param array $extensionKeys Extension keys to deactivate. Separate multiple extension keys with comma.
@throws \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException