i moved this to the code help forum
usualy you post script issues on the scripting issue board=)
… if this piece is a node (and it propably is) you can remove it using myNode.detachNode()
you can find more about node-manipulations in the manual
http://panda3d.org/manual/index.php/Scene_Graph_Manipulations