Can we get only deleted components in GoJS diagram?

Can we get only deleted components in GoJS diagram?
Can we get delete elements in an array or object?
After all functions undo redo can we get deleted elements separate.
Idea is delete any element insert into this array. undo remove from this array.
Is there any default functionality there.

Are you saying you want some kind of list of all Parts that have been deleted from a diagram at any given time? That’s not something we keep track of, but you should be able to do so yourself using a model change listener. https://gojs.net/latest/intro/changedEvents.html#IncrementallySavingChangesToModel