The CICS_EpiDelTerminal function deletes a previously added terminal resource.
The application does not consider the deletion complete until it receives the corresponding CICS_EPI_EVENT_END_TERM event. The terminal index remains allocated until a CICS_EpiGetEvent call retrieves the CICS_EPI_EVENT_END_TERM event. A call to this function fails if the terminal resource is currently running a transaction. To ensure that a terminal resource is deleted, the application must wait until the current transaction finishes and process all outstanding events before issuing the CICS_EpiDelTerminal call.
If the terminal resource was autoinstalled, its definition is deleted from the server. When a CICS_EpiDelTerminal call has completed successfully for a terminal resource, use of the terminal index is restricted to CICS_EpiGetEvent calls until the application has received the corresponding CICS_EPI_EVENT_END_TERM event.
The EPI uses this parameter only for input.