Delete a node from a singly linked list