To delete a node from the linked list, call nd_del():
void nd_del(ndp) NODEPTR ndp; /* Pointer to the node to delete */