added support for deleting nodes and performing teardown