adding delete function, currently it will delete reference to all
children of the delete node, gotta fix that