update delete_all method in cron job