I'm using motionbuilder 2010 and I'm wondering if it's possible to remove and merge an animation layer in Python. Basically I want to get the layer count and delete + merge all from the bottom up but I'm looking at the python functions and it seems that remove just takes an integer, but doesn't have any other options. Has anyone done this before?