def sever_children(self, output_socket):
        """Sever all children of given output socket."""

        try:
            children = output_socket.children

        except AttributeError:

            ### notify user of impossibility
            set_status_message("No children to disconnect")

        else:

            # note that we use a copy of the children
            # list; this is so because the children
            # list itself is altered while executing
            # the segment severing method

            for child in children[:]:

                self.sever_segment_between_sockets(
                    output_socket,
                    child,
                )

            ### signal the severances performed
            self.signal_severance_of_removed_sockets()

            ### notify user of success
            set_status_message("All children disconnected")

            ### indicate the change in the data and that the
            ### birdseye view state of window manager must have its
            ### objects updated next time it is set

            indicate_unsaved()
            APP_REFS.ea.must_update_birdseye_view_objects = True
Sever all children of given output socket.
nodezator/graphman/socketparenthood/support.py