remove constraint script that goes with Erwin's fixed constraint script

# You can attach 2 physics object together 'fixed' constraint with 2 hinge constraints
# just use pivot 0,0,0 and hinge axis1 (1,0,0) and hinge axis2 (0,1,0)
print "hi"
import PhysicsConstraints
import GameLogic
cont = GameLogic.getCurrentController()
scene = GameLogic.getCurrentScene()
#print dir(scene)
owner = cont.getOwner()
root = scene.getObjectList()[ "OB" + owner.root ]
#print dir(root)
point2point = 1
hinge = 2
#constraintType = point2point
constraintType = hinge
oid= owner.getPhysicsId()
rid = root.getPhysicsId()
pivotInAx=0
pivotInAy=0
pivotInAz=0
axis1InAx=1
axis1InAy=0
axis1InAz=0
axis2InAx=0
axis2InAy=1
axis2InAz=0

PhysicsConstraints.createConstraint(oid,rid,constraintType,pivotInAx,pivotInAy,pivotInAz,axis1InAx,axis1InAy,axis1InAz)
PhysicsConstraints.createConstraint(oid,rid,constraintType,pivotInAx,pivotInAy,pivotInAz,axis2InAx,axis2InAy,axis2InAz)

This is essencially the code from Erwin’s fixed constraint example, but I also want to use a script to remove the constraints when they get hit with an object of the property bullet. Apparently the remove constraint script from the ragdoll example won’t remove the constraints from this example, can anyone give me the script needed to remove constraints created by this script?

Do a “print dir(PhysicsConstraints)” and see if any method like “deleteConstraint” comes up.