not sure i get all you need but i use this macro :
Project - Duplicate tracks
Automation - Delete Automation of selected Tracks
TrackVersion - Delete Inactive Versions of selected Tracks
Edit - Select All on Tracks
Edit - Delete
not sure i get all you need but i use this macro :
Project - Duplicate tracks
Automation - Delete Automation of selected Tracks
TrackVersion - Delete Inactive Versions of selected Tracks
Edit - Select All on Tracks
Edit - Delete