Looks like you've got a circular FK reference with no deferring. Pretty much you can't delete anything once it's in, and might not be able to insert anything either.
You either need to drop one of the FK constraints, or set them to deferrable (assuming whatever db / engine you're using aupports deferable. )
this is like the things from Star Trek.
1: I always lie
2: I am now lying (lieing? I can't spell today)