code: def remove_child(self, child_pid):
          
          if child_pid.status == PIDStatus.RESERVED:
              raise PIDRelationConsistencyError(
                  "Version PIDs should not have status 'RESERVED'. Use "
                  "remove_draft_child to remove a draft PID.")
          with db.session.begin_nested():
              super(PIDNodeVersioning, self).remove_child(child_pid,
                                                          reorder=True)
              self.update_redirect()
docs: Remove a Version child PID.
  
          Extends the base method call by redirecting from the parent to the
          last child.