I tried to write removedeck and failed miserably.  It's incredibly difficult to unwind all of the COs and objects