delete parents of a part

Good morning i have intoa part 2 cube. i delete by code themergebeetween them. But the second cube still compare as childrenoffirst cube. there is the way (via code) to deletetheparent/children relationship beetween those cubes??SolidworksApi macros