A little late to the game here, but I saw this post mentioned in @jeremy_tammik's blog.
The simplest way to track deleted elements is by iUpdater, as that remains synchronised with the document state.
The trick to recording element deletion and maintaining some inkling of what the element was is to have a lookup table. The lookup table should be initialised once, and then maintained via iUpdater (added/modified). The key for the lookup table should be the elementId. The value could be a simple description such as:
Wall;300RC;0,0,0;10,10,0;3.0;Concrete;2021-12-21
(Category;Type;Start Point;End Point;Height;Material;Added/Modified Date)
This lookup table could be very large if all elements are monitored (or if descriptions are long). If only a few categories are monitored, storing the lookup table in a DataStorage element would work. For a vast number of categories/elements etc? Something like MongoDB would do just as well. It wouldn't matter if the data was a little stale.
Another way could be to redefine the Delete command. In the redefined command you would capture the element details, then proceed with deletion. An iUpdater could then process the data.
Cheers,
-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?