Open Documents, Delete Selective Groups and Close

Hi all,

I have a folder that contain say 10 rvt. Each rvt contain say 10 groups. The name of the 10 groups are matched with the name of 10 rvt.

I would like to use Dynamo to open 10 rvt at the background (Rhythm nodes), then on each opened document (rvt file), search for the groups that are not the same name with the document file, delete then close.

I am get stuck here:

Any advice is really appreciated.
I am trying to do this per Jacob Small’s idea : Mass save model groups to path - #16 by nnguyen