@internal<EOL><INDENT>def _destroy(self):<DEDENT>
ctx = self._get_rtl_context()<EOL>for i in self._inputs:<EOL><INDENT>i.endpoints.discard(self)<EOL><DEDENT>for o in self._outputs:<EOL><INDENT>o.drivers.remove(self)<EOL><DEDENT>ctx.statements.remove(self)<EOL>
Disconnect this statement from signals and delete it from RtlNetlist context

:attention: signal endpoints/drivers will be altered
    that means they can not be used for iteration