public function clear($type = 'notifications')
    {
        $builder = ($type === 'alerts') ? $this->getAlerts() : $this->getNotifications();

        return $this->makeModel()
                        ->getModel()
                        ->read()
                        ->getModel()
                        ->newQuery()
                        ->whereIn('stack_id', $builder->pluck('id'))->delete();
    }