Months ago, I read something on this site where someone wished for more flexibility than offered by the 'Reorganize' function. This function removes objects that do not occur in any model, but it works only on the entire database. Therefore, if you have object libraries (eg, all persons or all servers), you cannot use this function.
A colleague of mind mentioned this dilemna again the other day. So, it was a good opportunity for me to learn a little more about ARIS scripting, which is something I've been meaning to get around to. As it turns out, one can iterate objects in a group and for each object, get a list of:
- that object's connections
- that object's occurrences
With that, the report can identity objects with no occurrences. I also added the option to ignore objects that have a connection. Rather than delete the objects directly, which is probably what one wants to do, I had better luck giving an option to move them to a designated folder. From that folder, the objects can be reviewed and deleted, if necessary.
I have uploaded the script file for you to try, but it comes with no guarantees.