public function removeCommand(array $paths, $force = false)
    {
        foreach ($paths as $path) {
            if (!$this->configurationService->localIsActive($path)) {
                $this->outputLine('<warning>It seems that configuration for path "%s" is overridden.</warning>', [$path]);
                $this->outputLine('<warning>Removing the new value might have no effect.</warning>');
            }
            if (!$force && $this->configurationService->hasLocal($path)) {
                $reallyDelete = $this->output->askConfirmation('Remove ' . $path . ' from system configuration (TYPO3_CONF_VARS)? (yes/<b>no</b>): ', false);
                if (!$reallyDelete) {
                    continue;
                }
            }
            $removed = $this->configurationService->removeLocal($path);
            if ($removed) {
                $this->outputLine('<info>Removed "%s" from system configuration.</info>', [$path]);
            } else {
                $this->outputLine('<warning>Path "%s" seems invalid or empty. Nothing done!</warning>', [$path]);
            }
        }
    }
public function removeCommand(array $paths, $force = false)
    {
        foreach ($paths as $path) {
            if (!$this->configurationService->localIsActive($path)) {
                $this->outputLine('<warning>It seems that configuration for path "%s" is overridden.</warning>', [$path]);
                $this->outputLine('<warning>Removing the new value might have no effect.</warning>');
            }
            if (!$force && $this->configurationService->hasLocal($path)) {
                $reallyDelete = $this->output->askConfirmation('Remove ' . $path . ' from system configuration (TYPO3_CONF_VARS)? (yes/<b>no</b>): ', false);
                if (!$reallyDelete) {
                    continue;
                }
            }
            $removed = $this->configurationService->removeLocal($path);
            if ($removed) {
                $this->outputLine('<info>Removed "%s" from system configuration.</info>', [$path]);
            } else {
                $this->outputLine('<warning>Path "%s" seems invalid or empty. Nothing done!</warning>', [$path]);
            }
        }
    }
public function removeCommand ( array $ paths , $ force = false ) { foreach ( $ paths as $ path ) { if ( ! $ this -> configurationService -> localIsActive ( $ path ) ) { $ this -> outputLine ( '<warning>It seems that configuration for path "%s" is overridden.</warning>' , [ $ path ] ) ; $ this -> outputLine ( '<warning>Removing the new value might have no effect.</warning>' ) ; } if ( ! $ force && $ this -> configurationService -> hasLocal ( $ path ) ) { $ reallyDelete = $ this -> output -> askConfirmation ( 'Remove ' . $ path . ' from system configuration (TYPO3_CONF_VARS)? (yes/<b>no</b>): ' , false ) ; if ( ! $ reallyDelete ) { continue ; } } $ removed = $ this -> configurationService -> removeLocal ( $ path ) ; if ( $ removed ) { $ this -> outputLine ( '<info>Removed "%s" from system configuration.</info>' , [ $ path ] ) ; } else { $ this -> outputLine ( '<warning>Path "%s" seems invalid or empty. Nothing done!</warning>' , [ $ path ] ) ; } } }
Remove configuration option

Removes a system configuration option by path.

For this command to succeed, the configuration option(s) must be in
LocalConfiguration.php and not be overridden elsewhere.

<b>Example:</b> <code>%command.full_name% DB,EXT/EXTCONF/realurl</code>

@param array $paths Path to system configuration that should be removed. Multiple paths can be specified separated by comma
@param bool $force If set, does not ask for confirmation
Remove configuration option