It'd be easy enough to do, but do you definitely want to? A lot of places I've worked reuse activities if they fail testing.
On the assumption you definitely do, it would be easy enough - you'd want a postop trigger on mkbl and deliver. You'd want the trigger to find out what activities have been delivered/baselined, then run a cleartool lock -obsolete on them.
I'd have a look at "cleartool man mktrtype" to get you started.
Garry
CMCrossroads is a TechWell community.
Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.