Remove Unused Clips

When an Edit is complete and rendered, I would like to be able to “clean up” the Edit by removing unused clips.

Is there any built-in facility to enumerate clips that are used, or unused? Or, is there a function that removes unused clips directly?

What do you mean by “unused”?

Often, if not most of the time, you have more than one take for a particular track. Say you do three takes of a vocal part. You end up using take 2. So, takes 1 and 3 are no longer needed. I’d like to be able to remove takes 1 and 3 from the folder the Edit lives in.

I’m really asking if there is a built-in way to remove the takes, or do I need to roll my own?

Does WaveAudioClip::deleteAllUnusedTakes do what you need?

That sure sounds like what I need!

I’ll report back once I have had a chance to check it out.

Thank you.