Migrate delete_graph to new signature