The DELETE-STREAM command is used to delete S variable streams. The variable streams to be deleted can be specified in the STREAM-NAME operand explicitly in a list or using a search pattern.
The effect of deletion is that the variable stream is set as *DUMMY, and can no longer be used as either an assignment destination (ASSIGN-STREAM TO=...) or a transmission destination (TRANSMIT-BY-STREAM).
The only S variable streams which can be deleted are those on the highest level (external to procedures), or in procedures called from that level if SYSTEM-FILE-CONTEXT= *SAME-AS-CALLER is set.
It is never possible to delete variable streams with reserved names.
Variable streams in procedures with unreserved names are implicitly deleted on exiting from the procedure unless SYSTEM-FILE-CONTEXT=*SAME-AS-CALLER is set in the SET-PROCEDURE-OPTIONS command.