inst=MyComp( input, @keep=false ) annotation will automatically delete all output ports, as soon as they are not used in the pipeline anymore.
For each port individually, there is no such annotation. It might be added in Anduril2..
For annotations, and other syntax issues, it's good to take a look at the test-networks in $ANDURIL_HOME/testsystem/test-networks/.
there are plenty of examples.