Finished delete function in node.py