Added deleteList() function

Created a function to remove a list and also clean up its parent's
children list.