src/YAAP/Theme/Commands/ThemeDestroyCommand.php
public function handle()
	{
		// The theme is not exists.
		if ( ! $this->files->isDirectory($this->getPath(null)))
		{
			return $this->error('Theme "'.$this->getTheme().'" is not exists.');
		}

		$themePath = $this->getPath(null);

		$assetsPath = $this->getAssetsPath(null);

		if ($this->confirm('Are you sure you want to permanently delete? [yes|no]'))
		{
			// Delete permanent.
			$this->files->deleteDirectory($themePath, false);
			$this->files->deleteDirectory($assetsPath, false);

			$this->info('Theme "'.$this->getTheme().'" has been destroyed.');
		}
	}
public function handle()
	{
		// The theme is not exists.
		if ( ! $this->files->isDirectory($this->getPath(null)))
		{
			return $this->error('Theme "'.$this->getTheme().'" is not exists.');
		}

		$themePath = $this->getPath(null);

		$assetsPath = $this->getAssetsPath(null);

		if ($this->confirm('Are you sure you want to permanently delete? [yes|no]'))
		{
			// Delete permanent.
			$this->files->deleteDirectory($themePath, false);
			$this->files->deleteDirectory($assetsPath, false);

			$this->info('Theme "'.$this->getTheme().'" has been destroyed.');
		}
	}
Execute the console command.

@return void