Delete views by date edited

Hi all,

New to Dynamo and I’ve read a few threads discussing deleting views. I was wondering if there is a way to delete views based on how long they have gone unused.

For example, I’m working with a team coordinating the MEP services in a hospital. With many users creating sections to help with coordination, it clutters the model pretty fast. Ideally I’d want to create a script that deletes any unpinned sections that haven’t been used after a period of say 7 days.

Does Revit track the last opened date on a view? and if so what nodes would I use to extract that?

I don;t believe the API has this by default.

After searching some more I came to that conclusion unfortunately.

Thanks for your response