Getting key of the node deleted

i m trying to get the key of the node deleted but cant seem to get it how to get the key form event “SelectionDeleted”

The documentation for the DiagramEvent class lists how its properties are used for each of the kinds of DiagramEvent that there are: DiagramEvent | GoJS API So:

“SelectionDeleted”, the user has deleted selected Parts by CommandHandler.deleteSelection; the DiagramEvent.subject is the collection of Parts that were deleted, and this is called within a transaction.