code: void deleteList(int list) {
  		int ptr = getFirst(list);
  		while (ptr != nullNode()) {
  			int p = ptr;
  			ptr = getNext(ptr);
  			freeNode_(p);
  		}
  
  		if (m_b_allow_navigation_between_lists) {
  			int prevList = m_lists.getField(list, 2);
  			int nextList = m_lists.getField(list, 3);
  			if (prevList != nullNode())
  				m_lists.setField(prevList, 3, nextList);
  			else
  				m_list_of_lists = nextList;
  
  			if (nextList != nullNode())
  				m_lists.setField(nextList, 2, prevList);
  		}
  
  		freeList_(list);
  	}
docs: Deletes a list.