src/CronHelper/Controller/IndexController.php
public function storageClearAction()
	{
		if (!$this->isConsoleRequest()) {
			throw new \RuntimeException('You can only use this action from a console!');
		}

		$dbAdapter = $this->getDbAdapter();
		$console = $this->getConsole();
		$this->printConsoleBanner($console);

		try {
			$table = new JobTable($dbAdapter);
			$table->truncate();
		} catch (\Exception $exception) {
			$console->writeLine('Truncating database table failed!', ConsoleColor::LIGHT_RED);
			return;
		}

		$console->writeLine('Storage was successfully cleared!', ConsoleColor::LIGHT_GREEN);
	}
public function storageClearAction()
	{
		if (!$this->isConsoleRequest()) {
			throw new \RuntimeException('You can only use this action from a console!');
		}

		$dbAdapter = $this->getDbAdapter();
		$console = $this->getConsole();
		$this->printConsoleBanner($console);

		try {
			$table = new JobTable($dbAdapter);
			$table->truncate();
		} catch (\Exception $exception) {
			$console->writeLine('Truncating database table failed!', ConsoleColor::LIGHT_RED);
			return;
		}

		$console->writeLine('Storage was successfully cleared!', ConsoleColor::LIGHT_GREEN);
	}
Clear storage.

@return void
@throws \RuntimeException Whenever is action accessed not via console request.