a container behaviour has a proptery Components that is a list of all components stored in the container. You can run a loop overall components in the container and remove them with the deleteComponent() method of the vcApplication instance.
app = getApplication()
for component in conatiner.Components:
app.deleteComponent( component )
You need to login in order to like this post: click here