delete nodes and edges with a button