Pantheon\Terminus\Commands\Env\WipeCommand::wipe PHP Method

wipe() public method

Completely wipe and reset an environment
public wipe ( string $site_env )
$site_env string The name or UUID of the site/environment to wipe
    public function wipe($site_env)
    {
        list($site, $env) = $this->getSiteEnv($site_env);
        $workflow = $env->wipe();
        $this->log()->notice('Wiping the "{env}" environment of "{site}"', ['site' => $site->get('name'), 'env' => $env->id]);
        while (!$workflow->checkProgress()) {
            // @TODO: Add Symfony progress bar to indicate that something is happening.
        }
        $this->log()->notice($workflow->getMessage());
    }
WipeCommand