Devise\Users\UserManager::removeUnactivatedUsers PHP Method

removeUnactivatedUsers() public method

Removes users which have been awaiting activation (after registering). Currently, default is 30 days outstanding
public removeUnactivatedUsers ( $daysOutstanding = 30 ) : boolean
return boolean
    public function removeUnactivatedUsers($daysOutstanding = 30)
    {
        $outstandingDate = date("Y-m-d H:i:s", strtotime('now -' . $daysOutstanding . ' days'));
        if ($this->DvsUser->where('activated', '=', false)->where('created_at', '<=', $outstandingDate)->forceDelete()) {
            return true;
        }
        return false;
    }