Quite simple - get rid of all pieces of the the wall. Preferably complete the level too, but that is a secondary aim. If you can totally clear the level of your contraption as well that is even better.
If you can't clear it, try and leave as few pieces as possible.