public function run($request)
    {
        $sessions = $this->getExpiredSessions();
        $delCount = 0;
        if ($sessions) {
            foreach ($sessions as $session) {
                $session->delete();
                $delCount++;
            }
        }
        echo $delCount . ' session records deleted that were older than '
            . $this->config()->get('session_expiry_days') . ' days.'. PHP_EOL;
    }
public function run($request)
    {
        $sessions = $this->getExpiredSessions();
        $delCount = 0;
        if ($sessions) {
            foreach ($sessions as $session) {
                $session->delete();
                $delCount++;
            }
        }
        echo $delCount . ' session records deleted that were older than '
            . $this->config()->get('session_expiry_days') . ' days.'. PHP_EOL;
    }
public function run ( $ request ) { $ sessions = $ this -> getExpiredSessions ( ) ; $ delCount = 0 ; if ( $ sessions ) { foreach ( $ sessions as $ session ) { $ session -> delete ( ) ; $ delCount ++ ; } } echo $ delCount . ' session records deleted that were older than ' . $ this -> config ( ) -> get ( 'session_expiry_days' ) . ' days.' . PHP_EOL ; }
Run this cron task.

Go through all MultiFormSession records that
are older than the days specified in $session_expiry_days
and delete them.
Run this cron task .