private function flushAssets(\TridentKernel $kernel, OutputInterface $output)
    {
        $filesystem = new FileSystem();

        $output->write('Clearing existing assets');

        try {
            if ($filesystem->exists($kernel->getAssetDir())) {
                $filesystem->remove($kernel->getAssetDir());
            }

            $output->writeln('... <info>Done</info>');
            $output->writeln('');

            return true;
        } catch (\Exception $e) {
            $output->writeln('... <error>Error</error>');
            $output->writeln('');

            return false;
        }
    }