src/Extensions/ThemeManager.php
public function unTheme()
    {
        $publicTarget = public_path(self::TARGET_DIR);
        $publicSource = __DIR__.'/../../public';
        $viewsTarget = base_path('resources/views/'.self::TARGET_DIR);

        // Clean Views
        $clean = $this->filesystem->deleteDirectory($viewsTarget) || true;
        // Clean Public assets
        $clean = $clean && ($this->filesystem->cleanDirectory($publicTarget) || true);
        // Republish original/default public assets
        $unthemed = $clean && $this->filesystem->copyDirectory($publicSource, $publicTarget);

        // Actions to be taken after theme deactivation
        if ($unthemed) {
            // Update DB Setting
            Settings::updateOrCreate(['setting_name' => self::ACTIVE_KEY], ['setting_value' => 'default']);
        }

        return $unthemed;
    }
public function unTheme()
    {
        $publicTarget = public_path(self::TARGET_DIR);
        $publicSource = __DIR__.'/../../public';
        $viewsTarget = base_path('resources/views/'.self::TARGET_DIR);

        // Clean Views
        $clean = $this->filesystem->deleteDirectory($viewsTarget) || true;
        // Clean Public assets
        $clean = $clean && ($this->filesystem->cleanDirectory($publicTarget) || true);
        // Republish original/default public assets
        $unthemed = $clean && $this->filesystem->copyDirectory($publicSource, $publicTarget);

        // Actions to be taken after theme deactivation
        if ($unthemed) {
            // Update DB Setting
            Settings::updateOrCreate(['setting_name' => self::ACTIVE_KEY], ['setting_value' => 'default']);
        }

        return $unthemed;
    }
Deactivate all themes. Set canvas to "unthemed" state.
@return bool