code: def remove_draft_child(self):
          
          if self.draft_child:
              with db.session.begin_nested():
                  super(PIDNodeVersioning, self).remove_child(self.draft_child,
                                                              reorder=True)
docs: Remove the draft child from versioning.