Changed to delete_all instead of deleteAll

"deleteAll" is JavaScript method. So, Changed the syntax to ruby method that is "delete_all"