Finally I figured out how to delete a parent without deleting its child.