public function clearCommand()
    {
        $startTimestamp = time();

        $path = FLOW_PATH_ROOT . 'Data/MagicWandStash';
        FileUtils::removeDirectoryRecursively($path);

        #################
        # Final Message #
        #################

        $endTimestamp = time();
        $duration = $endTimestamp - $startTimestamp;

        $this->renderHeadLine('Done');
        $this->renderLine('Cleanup successful in %s seconds', [$duration]);
    }
public function clearCommand()
    {
        $startTimestamp = time();

        $path = FLOW_PATH_ROOT . 'Data/MagicWandStash';
        FileUtils::removeDirectoryRecursively($path);

        #################
        # Final Message #
        #################

        $endTimestamp = time();
        $duration = $endTimestamp - $startTimestamp;

        $this->renderHeadLine('Done');
        $this->renderLine('Cleanup successful in %s seconds', [$duration]);
    }
public function clearCommand ( ) { $ startTimestamp = time ( ) ; $ path = FLOW_PATH_ROOT . 'Data/MagicWandStash' ; FileUtils :: removeDirectoryRecursively ( $ path ) ; ################# # Final Message # ################# $ endTimestamp = time ( ) ; $ duration = $ endTimestamp - $ startTimestamp ; $ this -> renderHeadLine ( 'Done' ) ; $ this -> renderLine ( 'Cleanup successful in %s seconds' , [ $ duration ] ) ; }
Clear the whole stash

@return void
Clear the whole stash