Doubt in hashmap node function

How this recursion deletes the nodes in the list, if what it does when calling delete is to just invoke the next constructor?

Does it just call the next and next constructor until it reaches NULL wtihout deleting the nodes?

Won’t this code just “walk through” the nodes in the linked list without deleting any of them?